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
48 fieldPath: metadata.namespace
49 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
50 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
52 - name: {{ include "common.name" . }}-onboard-readiness
54 - /root/job_complete.py
57 - "{{ include "common.release" . }}-oof-has-onboard"
63 fieldPath: metadata.namespace
64 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
65 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
67 - name: {{ include "common.name" . }}-cont-sms-readiness
72 until [ $resp = "200" ]; do
73 resp=$(curl -s -o /dev/null -k --write-out %{http_code} https://aaf-sms.{{ include "common.namespace" . }}:10443/v1/sms/domain/has/secret);
82 fieldPath: metadata.namespace
83 image: "{{ .Values.global.dockerHubRepository }}/{{ .Values.global.curlImage }}"
84 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
86 - name: {{ include "common.name" . }}
87 image: "{{ include "common.repository" . }}/{{ .Values.global.image.optf_has }}"
88 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
92 - /usr/local/bin/conductor-controller
93 - --config-file=/usr/local/bin/conductor.conf
94 # disable liveness probe when breakpoints set in debugger
95 # so K8s doesn't restart unresponsive container
96 {{- if .Values.liveness.enabled }}
101 - /usr/local/bin/healthy.sh
102 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
103 periodSeconds: {{ .Values.liveness.periodSeconds }}
109 - /usr/local/bin/healthy.sh
110 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
111 periodSeconds: {{ .Values.readiness.periodSeconds }}
114 - mountPath: /etc/localtime
117 - mountPath: /usr/local/bin/conductor.conf
118 name: {{ .Values.global.commonConfigPrefix }}-config
119 subPath: conductor.conf
120 - mountPath: /usr/local/bin/log.conf
121 name: {{ .Values.global.commonConfigPrefix }}-config
123 - mountPath: /usr/local/bin/healthy.sh
124 name: {{ .Values.global.commonConfigPrefix }}-config
126 - mountPath: /usr/local/bin/AAF_RootCA.cer
127 name: {{ .Values.global.commonConfigPrefix }}-config
128 subPath: AAF_RootCA.cer
130 {{ include "common.resources" . | indent 12 }}
131 {{- if .Values.nodeSelector }}
133 {{ toYaml .Values.nodeSelector | indent 10 }}
135 {{- if .Values.affinity }}
137 {{ toYaml .Values.affinity | indent 10 }}
143 - name: {{ .Values.global.commonConfigPrefix }}-config
145 name: {{ .Values.global.commonConfigPrefix }}-configmap
147 - key: conductor.conf
153 - key: AAF_RootCA.cer
156 - name: "{{ include "common.namespace" . }}-docker-registry-key"