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.
15 apiVersion: extensions/v1beta1
19 app: {{ include "common.name" . }}
20 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
21 release: {{ .Release.Name }}
22 heritage: {{ .Release.Service }}
23 name: {{ include "common.fullname" . }}
24 namespace: {{ include "common.namespace" . }}
26 replicas: {{ .Values.global.aaf.hello.replicas }}
30 app: {{ include "common.name" . }}
31 release: {{ .Release.Name }}
34 - name: {{ include "common.name" . }}-config-container
35 image: {{ .Values.global.repository }}/onap/aaf/aaf_agent:{{.Values.global.aaf.imageVersion}}
36 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
38 - mountPath: "/opt/app/osaaf/local"
40 command: ["bash","-c","/opt/app/aaf_config/bin/pod_wait.sh config nc aaf-cm.{{.Release.Namespace}} 8150 remove && cd /opt/app/osaaf/local && /opt/app/aaf_config/bin/agent.sh"]
43 value: "{{ .Values.global.aaf.aaf_env }}"
45 value: "{{ .Values.global.aaf.cadi_latitude }}"
46 - name: cadi_longitude
47 value: "{{ .Values.global.aaf.cadi_longitude }}"
48 - name: aaf_locate_url
49 value: "https://aaf-locate.{{ .Release.Namespace}}:{{.Values.global.aaf.locate.internal_port}}"
50 - name: aaf_locator_container
53 value: "{{ .Values.global.aaf.aaf_release }}"
54 - name: aaf_locator_container_ns
55 value: "{{ .Release.Namespace }}"
56 - name: aaf_locator_container
58 - name: aaf_locator_container_ns
59 value: "{{ .Release.Namespace }}"
60 - name: aaf_locator_app_ns
61 value: "org.osaaf.aaf"
63 value: "{{ .Values.global.aaf.hello.fqdn }}"
65 value: "aaf@aaf.osaaf.org"
67 value: "deployer@people.osaaf.org"
68 - name: "DEPLOY_PASSWORD"
70 # Hello specific. Clients don't necessarily need this
71 - name: aaf_locator_public_fqdn
72 value: "{{.Values.global.aaf.public_fqdn}}"
73 - name: aaf_locator_name
74 value: "{{.Values.global.aaf.aaf_locator_name}}"
75 - name: aaf_locator_name_oom
76 value: "{{.Values.global.aaf.aaf_locator_name_oom}}"
77 - name: aaf_locator_fqdn_oom
80 - name: {{ include "common.name" . }}
81 command: ["/bin/bash","-c","cd /opt/app/aaf && exec bin/hello"]
82 image: {{ .Values.global.repository }}/onap/aaf/aaf_hello:{{.Values.global.aaf.imageVersion}}
83 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
85 - mountPath: "/opt/app/osaaf/local"
87 - mountPath: "/opt/app/aaf/status"
89 - mountPath: /etc/localtime
92 {{- if eq .Values.liveness.enabled true }}
95 port: {{ .Values.service.internalPort }}
96 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
97 periodSeconds: {{ .Values.liveness.periodSeconds }}
101 port: {{ .Values.service.internalPort }}
102 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
103 periodSeconds: {{ .Values.readiness.periodSeconds }}
105 {{ include "common.resources" . | indent 12 }}
106 {{- if .Values.nodeSelector }}
108 {{ toYaml .Values.nodeSelector | indent 10 }}
110 {{- if .Values.affinity }}
112 {{ toYaml .Values.affinity | indent 10 }}
118 - name: aaf-status-vol
119 persistentVolumeClaim:
120 claimName: {{ .Release.Name }}-aaf-status-pvc
121 - name: aaf-hello-vol
124 - name: "{{ include "common.namespace" . }}-docker-registry-key"