2 # Copyright © 2017 Amdocs, Bell Canada
3 # Modifications Copyright © 2018 AT&T,VMware
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
9 # http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
20 metadata: {{- include "common.resourceMetadata" . | nindent 2 }}
22 selector: {{- include "common.selectors" . | nindent 4 }}
23 replicas: {{ .Values.replicaCount }}
25 metadata: {{- include "common.templateMetadata" . | nindent 6 }}
28 {{ include "common.readinessCheck.waitFor" . | nindent 6 }}
30 - name: {{ include "common.name" . }}
31 image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.global.image.optf_has }}
32 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
36 - /usr/local/bin/conductor-controller
37 - --config-file=/usr/local/bin/conductor.conf
38 # disable liveness probe when breakpoints set in debugger
39 # so K8s doesn't restart unresponsive container
40 {{- if .Values.liveness.enabled }}
45 - /usr/local/bin/healthy.sh
46 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
47 periodSeconds: {{ .Values.liveness.periodSeconds }}
53 - /usr/local/bin/healthy.sh
54 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
55 periodSeconds: {{ .Values.readiness.periodSeconds }}
56 env: {{ include "oof.etcd.env" . | nindent 10 }}
58 - mountPath: /usr/local/bin/conductor.conf
59 name: {{ .Values.global.commonConfigPrefix }}-config
60 subPath: conductor.conf
61 - mountPath: /usr/local/bin/log.conf
62 name: {{ .Values.global.commonConfigPrefix }}-config
64 - mountPath: /usr/local/bin/healthy.sh
65 name: {{ .Values.global.commonConfigPrefix }}-config
67 resources: {{ include "common.resources" . | nindent 12 }}
68 {{- if .Values.nodeSelector }}
70 {{ toYaml .Values.nodeSelector | indent 10 }}
72 {{- if .Values.affinity }}
74 {{ toYaml .Values.affinity | indent 10 }}
76 serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}}
78 - name: {{ .Values.global.commonConfigPrefix }}-config
80 name: {{ .Values.global.commonConfigPrefix }}-configmap
88 {{- include "common.imagePullSecrets" . | nindent 6 }}