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" . }}-has-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-api
89 - --port={{ .Values.service.internalPort }}
91 - --config-file=/usr/local/bin/conductor.conf
93 - containerPort: {{ .Values.service.internalPort }}
94 # disable liveness probe when breakpoints set in debugger
95 # so K8s doesn't restart unresponsive container
96 {{- if .Values.liveness.enabled }}
99 port: {{ .Values.service.internalPort }}
100 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
101 periodSeconds: {{ .Values.liveness.periodSeconds }}
105 port: {{ .Values.service.internalPort }}
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/AAF_RootCA.cer
120 name: {{ .Values.global.commonConfigPrefix }}-config
121 subPath: AAF_RootCA.cer
123 {{ include "common.resources" . | indent 12 }}
124 {{- if .Values.nodeSelector }}
126 {{ toYaml .Values.nodeSelector | indent 10 }}
128 {{- if .Values.affinity }}
130 {{ toYaml .Values.affinity | indent 10 }}
136 - name: {{ .Values.global.commonConfigPrefix }}-config
138 name: {{ .Values.global.commonConfigPrefix }}-configmap
140 - key: conductor.conf
144 - key: AAF_RootCA.cer
147 - name: "{{ include "common.namespace" . }}-docker-registry-key"