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
49 fieldPath: metadata.namespace
50 image: "{{ include "common.repository" . }}/{{ .Values.global.readinessImage }}"
51 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
53 - name: {{ include "common.name" . }}-onboard-readiness
58 - "{{ include "common.release" . }}-oof-has-onboard"
64 fieldPath: metadata.namespace
65 image: "{{ include "common.repository" . }}/{{ .Values.global.readinessImage }}"
66 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
68 - name: {{ include "common.name" . }}-health-readiness
73 - "{{ include "common.release" . }}-oof-has-healthcheck"
79 fieldPath: metadata.namespace
80 image: "{{ include "common.repository" . }}/{{ .Values.global.readinessImage }}"
81 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
83 - name: {{ include "common.name" . }}-solvr-sms-readiness
88 until [ $resp = "200" ]; do
89 resp=$(curl -s -o /dev/null -k --write-out %{http_code} https://aaf-sms.{{ include "common.namespace" . }}:10443/v1/sms/domain/has/secret);
98 fieldPath: metadata.namespace
99 image: "{{ .Values.global.dockerHubRepository }}/{{ .Values.global.curlImage }}"
100 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
103 - name: {{ include "common.name" . }}
104 image: "{{ include "common.repository" . }}/{{ .Values.global.image.optf_has }}"
105 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
109 - /usr/local/bin/conductor-solver
110 - --config-file=/usr/local/bin/conductor.conf
111 # disable liveness probe when breakpoints set in debugger
112 # so K8s doesn't restart unresponsive container
113 {{- if .Values.liveness.enabled }}
118 - /usr/local/bin/healthy.sh
119 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
120 periodSeconds: {{ .Values.liveness.periodSeconds }}
126 - /usr/local/bin/healthy.sh
127 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
128 periodSeconds: {{ .Values.readiness.periodSeconds }}
131 - mountPath: /etc/localtime
134 - mountPath: /usr/local/bin/conductor.conf
135 name: {{ .Values.global.commonConfigPrefix }}-config
136 subPath: conductor.conf
137 - mountPath: /usr/local/bin/log.conf
138 name: {{ .Values.global.commonConfigPrefix }}-config
140 - mountPath: /usr/local/bin/healthy.sh
141 name: {{ .Values.global.commonConfigPrefix }}-config
143 - mountPath: /usr/local/bin/AAF_RootCA.cer
144 name: {{ .Values.global.commonConfigPrefix }}-config
145 subPath: AAF_RootCA.cer
147 {{ include "common.resources" . | indent 12 }}
148 {{- if .Values.nodeSelector }}
150 {{ toYaml .Values.nodeSelector | indent 10 }}
152 {{- if .Values.affinity }}
154 {{ toYaml .Values.affinity | indent 10 }}
160 - name: {{ .Values.global.commonConfigPrefix }}-config
162 name: {{ .Values.global.commonConfigPrefix }}-configmap
164 - key: conductor.conf
170 - key: AAF_RootCA.cer
173 - name: "{{ include "common.namespace" . }}-docker-registry-key"