2 # Copyright © 2017 Amdocs, Bell Canada
3 # Modifications © 2020 Orange
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.
19 metadata: {{- include "common.resourceMetadata" . | nindent 2 }}
21 selector: {{- include "common.selectors" . | nindent 4 }}
22 replicas: {{ .Values.replicaCount }}
24 metadata: {{- include "common.templateMetadata" . | nindent 6 }}
26 initContainers: {{ include "common.aaf-config" (dict "aafRoot" .Values.aaf_init "dot" .) | nindent 6 }}
27 # CONTAINER Definition
29 - name: {{ include "common.name" . }}
30 command: ["bash","-c","cd /opt/app/aaf && if [ ! -d /opt/app/osaaf/etc ]; then cp -Rf etc logs /opt/app/osaaf; fi && exec bin/hello"]
31 image: {{ .Values.global.repository }}/{{.Values.image }}
32 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
33 ports: {{ include "common.containerPorts" . | nindent 10 }}
34 volumeMounts: {{ include "common.aaf-config-volume-mountpath" . | nindent 8 }}
35 - mountPath: /etc/localtime
38 {{- if eq .Values.liveness.enabled true }}
41 port: {{ .Values.liveness.port }}
42 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
43 periodSeconds: {{ .Values.liveness.periodSeconds }}
47 port: {{ .Values.readiness.port }}
48 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
49 periodSeconds: {{ .Values.readiness.periodSeconds }}
50 resources: {{ include "common.resources" . | nindent 12 }}
51 {{- if .Values.nodeSelector }}
52 nodeSelector: {{ toYaml .Values.nodeSelector | nindent 10 }}
54 {{- if .Values.affinity }}
55 affinity: {{ toYaml .Values.affinity | nindent 10 }}
57 volumes: {{ include "common.aaf-config-volumes" (dict "aafRoot" .Values.aaf_init "dot" .) | nindent 6 }}
62 - name: "{{ include "common.namespace" . }}-docker-registry-key"