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 }}
47 fieldPath: metadata.namespace
48 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
49 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
50 name: {{ include "common.name" . }}-readiness
52 - /root/job_complete.py
55 - "{{ .Release.Name }}-oof-has-onboard"
61 fieldPath: metadata.namespace
62 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
63 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
64 name: {{ include "common.name" . }}-onboard-readiness
69 until [ $resp = "200" ]; do
70 resp=$(curl -s -o /dev/null -k --write-out %{http_code} https://aaf-sms.{{ include "common.namespace" . }}:10443/v1/sms/domain/has/secret);
79 fieldPath: metadata.namespace
80 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
81 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
82 name: {{ include "common.name" . }}-has-sms-readiness
84 - name: {{ include "common.name" . }}
85 image: "{{ include "common.repository" . }}/{{ .Values.global.image.optf_has }}"
86 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
90 - /usr/local/bin/conductor-api
91 - --port={{ .Values.service.internalPort }}
93 - --config-file=/usr/local/bin/conductor.conf
95 - containerPort: {{ .Values.service.internalPort }}
96 # disable liveness probe when breakpoints set in debugger
97 # so K8s doesn't restart unresponsive container
98 {{- if .Values.liveness.enabled }}
101 port: {{ .Values.service.internalPort }}
102 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
103 periodSeconds: {{ .Values.liveness.periodSeconds }}
107 port: {{ .Values.service.internalPort }}
108 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
109 periodSeconds: {{ .Values.readiness.periodSeconds }}
112 - mountPath: /etc/localtime
115 - mountPath: /usr/local/bin/conductor.conf
116 name: {{ .Values.global.commonConfigPrefix }}-config
117 subPath: conductor.conf
118 - mountPath: /usr/local/bin/log.conf
119 name: {{ .Values.global.commonConfigPrefix }}-config
121 - mountPath: /usr/local/bin/AAF_RootCA.cer
122 name: {{ .Values.global.commonConfigPrefix }}-config
123 subPath: AAF_RootCA.cer
125 {{ include "common.resources" . | indent 12 }}
126 {{- if .Values.nodeSelector }}
128 {{ toYaml .Values.nodeSelector | indent 10 }}
130 {{- if .Values.affinity }}
132 {{ toYaml .Values.affinity | indent 10 }}
138 - name: {{ .Values.global.commonConfigPrefix }}-config
140 name: {{ .Values.global.commonConfigPrefix }}-configmap
142 - key: conductor.conf
146 - key: AAF_RootCA.cer
149 - name: "{{ include "common.namespace" . }}-docker-registry-key"