1 # Copyright © 2017 Amdocs, Bell Canada
2 # Modifications Copyright © 2018 AT&T,VMware
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
19 name: {{ include "common.fullname" . }}
20 namespace: {{ include "common.namespace" . }}
22 app: {{ include "common.name" . }}
23 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
24 release: {{ include "common.release" . }}
25 heritage: {{ .Release.Service }}
29 app: {{ include "common.name" . }}
30 replicas: {{ .Values.replicaCount }}
34 app: {{ include "common.name" . }}
35 release: {{ include "common.release" . }}
38 - name: {{ include "common.name" . }}-readiness
51 fieldPath: metadata.namespace
52 image: "{{ include "common.repository" . }}/{{ .Values.global.readinessImage }}"
53 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
55 - name: {{ include "common.name" . }}-onboard-readiness
60 - "{{ include "common.release" . }}-oof-has-onboard"
66 fieldPath: metadata.namespace
67 image: "{{ include "common.repository" . }}/{{ .Values.global.readinessImage }}"
68 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
70 - name: {{ include "common.name" . }}-cont-sms-readiness
75 until [ $resp = "200" ]; do
76 resp=$(curl -s -o /dev/null -k --write-out %{http_code} https://aaf-sms.{{ include "common.namespace" . }}:10443/v1/sms/domain/has/secret);
85 fieldPath: metadata.namespace
86 image: "{{ .Values.global.dockerHubRepository }}/{{ .Values.global.curlImage }}"
87 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
89 - name: {{ include "common.name" . }}
90 image: "{{ include "common.repository" . }}/{{ .Values.global.image.optf_has }}"
91 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
95 - /usr/local/bin/conductor-controller
96 - --config-file=/usr/local/bin/conductor.conf
97 # disable liveness probe when breakpoints set in debugger
98 # so K8s doesn't restart unresponsive container
99 {{- if .Values.liveness.enabled }}
104 - /usr/local/bin/healthy.sh
105 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
106 periodSeconds: {{ .Values.liveness.periodSeconds }}
112 - /usr/local/bin/healthy.sh
113 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
114 periodSeconds: {{ .Values.readiness.periodSeconds }}
117 - mountPath: /etc/localtime
120 - mountPath: /usr/local/bin/conductor.conf
121 name: {{ .Values.global.commonConfigPrefix }}-config
122 subPath: conductor.conf
123 - mountPath: /usr/local/bin/log.conf
124 name: {{ .Values.global.commonConfigPrefix }}-config
126 - mountPath: /usr/local/bin/healthy.sh
127 name: {{ .Values.global.commonConfigPrefix }}-config
129 - mountPath: /usr/local/bin/AAF_RootCA.cer
130 name: {{ .Values.global.commonConfigPrefix }}-config
131 subPath: AAF_RootCA.cer
133 {{ include "common.resources" . | indent 12 }}
134 {{- if .Values.nodeSelector }}
136 {{ toYaml .Values.nodeSelector | indent 10 }}
138 {{- if .Values.affinity }}
140 {{ toYaml .Values.affinity | indent 10 }}
146 - name: {{ .Values.global.commonConfigPrefix }}-config
148 name: {{ .Values.global.commonConfigPrefix }}-configmap
150 - key: conductor.conf
156 - key: AAF_RootCA.cer
159 - name: "{{ include "common.namespace" . }}-docker-registry-key"