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: {{ .Release.Name }}
25 heritage: {{ .Release.Service }}
27 replicas: {{ .Values.replicaCount }}
31 app: {{ include "common.name" . }}
32 release: {{ .Release.Name }}
45 fieldPath: metadata.namespace
46 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
47 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
48 name: {{ include "common.name" . }}-readiness
50 - /root/job_complete.py
53 - "{{ .Release.Name }}-oof-has-onboard"
59 fieldPath: metadata.namespace
60 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
61 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
62 name: {{ include "common.name" . }}-onboard-readiness
67 until [ $resp = "200" ]; do
68 resp=$(curl -s -o /dev/null -k --write-out %{http_code} https://aaf-sms.{{ include "common.namespace" . }}:10443/v1/sms/domain/has/secret);
77 fieldPath: metadata.namespace
78 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
79 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
80 name: {{ include "common.name" . }}-cont-sms-readiness
82 - name: {{ include "common.name" . }}
83 image: "{{ include "common.repository" . }}/{{ .Values.global.image.optf_has }}"
84 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
88 - /usr/local/bin/conductor-controller
89 - --config-file=/usr/local/bin/conductor.conf
90 # disable liveness probe when breakpoints set in debugger
91 # so K8s doesn't restart unresponsive container
92 {{- if .Values.liveness.enabled }}
97 - /usr/local/bin/healthy.sh
98 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
99 periodSeconds: {{ .Values.liveness.periodSeconds }}
105 - /usr/local/bin/healthy.sh
106 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
107 periodSeconds: {{ .Values.readiness.periodSeconds }}
110 - mountPath: /etc/localtime
113 - mountPath: /usr/local/bin/conductor.conf
114 name: {{ .Values.global.commonConfigPrefix }}-config
115 subPath: conductor.conf
116 - mountPath: /usr/local/bin/log.conf
117 name: {{ .Values.global.commonConfigPrefix }}-config
119 - mountPath: /usr/local/bin/healthy.sh
120 name: {{ .Values.global.commonConfigPrefix }}-config
122 - mountPath: /usr/local/bin/AAF_RootCA.cer
123 name: {{ .Values.global.commonConfigPrefix }}-config
124 subPath: AAF_RootCA.cer
126 {{ include "common.resources" . | indent 12 }}
127 {{- if .Values.nodeSelector }}
129 {{ toYaml .Values.nodeSelector | indent 10 }}
131 {{- if .Values.affinity }}
133 {{ toYaml .Values.affinity | indent 10 }}
139 - name: {{ .Values.global.commonConfigPrefix }}-config
141 name: {{ .Values.global.commonConfigPrefix }}-configmap
143 - key: conductor.conf
149 - key: AAF_RootCA.cer
152 - name: "{{ include "common.namespace" . }}-docker-registry-key"