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.
16 apiVersion: extensions/v1beta1
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 }}
27 replicas: {{ .Values.replicaCount }}
31 app: {{ include "common.name" . }}
32 release: {{ include "common.release" . }}
35 - name: {{ include "common.name" . }}-readiness
46 fieldPath: metadata.namespace
47 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
48 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
50 - name: {{ include "common.name" . }}-onboard-readiness
52 - /root/job_complete.py
55 - "{{ include "common.release" . }}-oof-has-onboard"
61 fieldPath: metadata.namespace
62 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
63 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
65 - name: {{ include "common.name" . }}-health-readiness
67 - /root/job_complete.py
70 - "{{ include "common.release" . }}-oof-has-healthcheck"
76 fieldPath: metadata.namespace
77 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
78 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
80 - name: {{ include "common.name" . }}-resrv-sms-readiness
85 until [ $resp = "200" ]; do
86 resp=$(curl -s -o /dev/null -k --write-out %{http_code} https://aaf-sms.{{ include "common.namespace" .}}:10443/v1/sms/domain/has/secret);
95 fieldPath: metadata.namespace
96 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
97 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
100 - name: {{ include "common.name" . }}
101 image: "{{ include "common.repository" . }}/{{ .Values.global.image.optf_has }}"
102 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
106 - /usr/local/bin/conductor-reservation
107 - --config-file=/usr/local/bin/conductor.conf
108 # disable liveness probe when breakpoints set in debugger
109 # so K8s doesn't restart unresponsive container
110 {{- if .Values.liveness.enabled }}
115 - /usr/local/bin/healthy.sh
116 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
117 periodSeconds: {{ .Values.liveness.periodSeconds }}
122 - /usr/local/bin/healthy.sh
123 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
124 periodSeconds: {{ .Values.readiness.periodSeconds }}
128 - mountPath: /etc/localtime
131 - mountPath: /usr/local/bin/conductor.conf
132 name: {{ .Values.global.commonConfigPrefix }}-config
133 subPath: conductor.conf
134 - mountPath: /usr/local/bin/log.conf
135 name: {{ .Values.global.commonConfigPrefix }}-config
137 - mountPath: /usr/local/bin/healthy.sh
138 name: {{ .Values.global.commonConfigPrefix }}-config
140 - mountPath: /usr/local/bin/AAF_RootCA.cer
141 name: {{ .Values.global.commonConfigPrefix }}-config
142 subPath: AAF_RootCA.cer
144 {{ include "common.resources" . | indent 12 }}
145 {{- if .Values.nodeSelector }}
147 {{ toYaml .Values.nodeSelector | indent 10 }}
149 {{- if .Values.affinity }}
151 {{ toYaml .Values.affinity | indent 10 }}
157 - name: {{ .Values.global.commonConfigPrefix }}-config
159 name: {{ .Values.global.commonConfigPrefix }}-configmap
161 - key: conductor.conf
167 - key: AAF_RootCA.cer
171 - name: "{{ include "common.namespace" . }}-docker-registry-key"