1 # Copyright © 2017 Amdocs, Bell Canada
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
18 app: {{ include "common.name" . }}
19 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
20 release: {{ .Release.Name }}
21 heritage: {{ .Release.Service }}
22 name: {{ include "common.fullname" . }}
23 namespace: {{ include "common.namespace" . }}
25 replicas: {{ .Values.global.aaf.hello.replicas }}
28 app: {{ include "common.name" . }}
29 release: {{ .Release.Name }}
33 app: {{ include "common.name" . }}
34 release: {{ .Release.Name }}
41 persistentVolumeClaim:
42 claimName: {{ .Release.Name }}-aaf-hello-pvc
44 - name: "{{ include "common.namespace" . }}-docker-registry-key"
46 - name: {{ include "common.name" . }}-config
47 image: {{ .Values.global.repository }}/{{.Values.aaf_init.image}}
48 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
50 - mountPath: "/opt/app/osaaf"
52 # NOTE: Before this, need Liveness Attached to aaf-certman
53 command: ["bash","-c","exec /opt/app/aaf_config/bin/agent.sh"]
56 value: "{{ .Values.aaf_init.fqi }}"
57 - name: aaf_locate_url
58 value: "https://aaf-locate.{{ .Release.Namespace}}:8095"
59 - name: aaf_locator_container
61 - name: aaf_locator_container_ns
62 value: "{{ .Release.Namespace }}"
63 - name: aaf_locator_fqdn
64 value: "{{ .Values.aaf_init.fqdn }}"
65 - name: aaf_locator_app_ns
66 value: "{{ .Values.aaf_init.app_ns }}"
68 value: "deployer@people.osaaf.org"
69 # Note: We want to put this in Secrets or at LEAST ConfigMaps
70 - name: DEPLOY_PASSWORD
72 # Note: want to put this on Nodes, evenutally
73 - name: cadi_longitude
74 value: "{{ .Values.aaf_init.cadi_longitude }}"
76 value: "{{ .Values.aaf_init.cadi_latitude }}"
77 # Hello specific. Clients don't don't need this, unless Registering with AAF Locator
78 - name: aaf_locator_public_fqdn
79 value: "{{.Values.global.aaf.public_fqdn}}"
81 - name: {{ include "common.name" . }}
82 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"]
83 image: {{ .Values.global.repository }}/{{.Values.service.image }}
84 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
86 - mountPath: "/opt/app/osaaf"
88 - mountPath: /etc/localtime
91 {{- if eq .Values.liveness.enabled true }}
94 port: {{ .Values.service.port }}
95 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
96 periodSeconds: {{ .Values.liveness.periodSeconds }}
100 port: {{ .Values.service.port }}
101 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
102 periodSeconds: {{ .Values.readiness.periodSeconds }}
104 {{ include "common.resources" . | indent 12 }}
105 {{- if .Values.nodeSelector }}
107 {{ toYaml .Values.nodeSelector | indent 10 }}
109 {{- if .Values.affinity }}
111 {{ toYaml .Values.affinity | indent 10 }}