2 # Copyright © 2017 Amdocs, Bell Canada
3 # Modifications Copyright © 2018 AT&T,VMware
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
9 # http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
21 name: {{ include "common.fullname" . }}
22 namespace: {{ include "common.namespace" . }}
24 app: {{ include "common.name" . }}
25 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
26 release: {{ include "common.release" . }}
27 heritage: {{ .Release.Service }}
31 app: {{ include "common.name" . }}
32 replicas: {{ .Values.replicaCount }}
36 app: {{ include "common.name" . }}
37 release: {{ include "common.release" . }}
40 - 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" . }}-health-readiness
75 - "{{ include "common.release" . }}-oof-has-healthcheck"
81 fieldPath: metadata.namespace
82 image: "{{ include "common.repository" . }}/{{ .Values.global.readinessImage }}"
83 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
85 - name: {{ include "common.name" . }}-data-sms-readiness
90 until [ $resp = "200" ]; do
91 resp=$(curl -s -o /dev/null -k --write-out %{http_code} https://aaf-sms.{{ include "common.namespace" . }}:10443/v1/sms/domain/has/secret);
100 fieldPath: metadata.namespace
101 image: "{{ .Values.global.dockerHubRepository }}/{{ .Values.global.curlImage }}"
102 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
105 - name: {{ include "common.name" . }}
106 image: "{{ include "common.repository" . }}/{{ .Values.global.image.optf_has }}"
107 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
111 - /usr/local/bin/conductor-data
112 - --config-file=/usr/local/bin/conductor.conf
113 # disable liveness probe when breakpoints set in debugger
114 # so K8s doesn't restart unresponsive container
115 {{- if .Values.liveness.enabled }}
120 - /usr/local/bin/healthy.sh
121 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
122 periodSeconds: {{ .Values.liveness.periodSeconds }}
128 - /usr/local/bin/healthy.sh
129 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
130 periodSeconds: {{ .Values.readiness.periodSeconds }}
133 - mountPath: /etc/localtime
136 - mountPath: /usr/local/bin/conductor.conf
137 name: {{ .Values.global.commonConfigPrefix }}-config
138 subPath: conductor.conf
139 - mountPath: /usr/local/bin/log.conf
140 name: {{ .Values.global.commonConfigPrefix }}-config
142 - mountPath: /usr/local/bin/healthy.sh
143 name: {{ .Values.global.commonConfigPrefix }}-config
145 - mountPath: /usr/local/bin/aai_cert.cer
146 name: {{ .Values.global.commonConfigPrefix }}-config
147 subPath: aai_cert.cer
148 - mountPath: /usr/local/bin/aai_key.key
149 name: {{ .Values.global.commonConfigPrefix }}-config
151 - mountPath: /usr/local/bin/AAF_RootCA.cer
152 name: {{ include "common.fullname" . }}-onap-certs
153 subPath: aaf_root_ca.cer
155 {{ include "common.resources" . | indent 12 }}
156 {{- if .Values.nodeSelector }}
158 {{ toYaml .Values.nodeSelector | indent 10 }}
160 {{- if .Values.affinity }}
162 {{ toYaml .Values.affinity | indent 10 }}
168 - name: {{ .Values.global.commonConfigPrefix }}-config
170 name: {{ .Values.global.commonConfigPrefix }}-configmap
172 - key: conductor.conf
182 {{ include "oof.certificate.volume" . | indent 8 }}
184 - name: "{{ include "common.namespace" . }}-docker-registry-key"