1 # Copyright © 2017 Amdocs, Bell Canada
2 # Modifications © 2020 Orange
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.
17 metadata: {{- include "common.resourceMetadata" . | nindent 2 }}
19 selector: {{- include "common.selectors" . | nindent 4 }}
20 replicas: {{ .Values.replicaCount }}
22 metadata: {{- include "common.templateMetadata" . | nindent 6 }}
24 initContainers: {{ include "common.aaf-config" (dict "aafRoot" .Values.aaf_init "dot" .) | nindent 6 }}
25 # CONTAINER Definition
27 - name: {{ include "common.name" . }}
28 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"]
29 image: {{ .Values.global.repository }}/{{.Values.image }}
30 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
31 ports: {{ include "common.containerPorts" . | nindent 10 }}
32 volumeMounts: {{ include "common.aaf-config-volume-mountpath" . | nindent 8 }}
33 - mountPath: /etc/localtime
36 {{- if eq .Values.liveness.enabled true }}
39 port: {{ .Values.liveness.port }}
40 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
41 periodSeconds: {{ .Values.liveness.periodSeconds }}
45 port: {{ .Values.readiness.port }}
46 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
47 periodSeconds: {{ .Values.readiness.periodSeconds }}
48 resources: {{ include "common.resources" . | nindent 12 }}
49 {{- if .Values.nodeSelector }}
50 nodeSelector: {{ toYaml .Values.nodeSelector | nindent 10 }}
52 {{- if .Values.affinity }}
53 affinity: {{ toYaml .Values.affinity | nindent 10 }}
55 volumes: {{ include "common.aaf-config-volumes" (dict "aafRoot" .Values.aaf_init "dot" .) | nindent 6 }}
60 - name: "{{ include "common.namespace" . }}-docker-registry-key"