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.fs.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_config:{{.Values.global.aaf.imageVersion}}
36 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
37 command: ["bash","-c","cd /opt/app/aaf_config && bin/pod_wait.sh config aaf-service remove && bin/agent.sh"]
39 - mountPath: "/opt/app/osaaf"
41 - mountPath: "/opt/app/aaf/status"
45 value: "{{ .Values.global.aaf.aaf_env }}"
47 value: "{{ .Values.global.aaf.cadi_latitude }}"
48 - name: cadi_longitude
49 value: "{{ .Values.global.aaf.cadi_longitude }}"
50 - name: cadi_x509_issuers
51 value: "{{ .Values.global.aaf.cadi_x509_issuers }}"
52 - name: aaf_locate_url
53 value: "https://aaf-locate.{{ .Release.Namespace}}:{{.Values.global.aaf.locate.internal_port}}"
54 - name: aaf_locator_container
57 value: "{{ .Values.global.aaf.aaf_release }}"
58 - name: aaf_locator_container_ns
59 value: "{{ .Release.Namespace }}"
60 - name: aaf_locator_container
62 - name: aaf_locator_public_fqdn
63 value: "{{.Values.global.aaf.public_fqdn}}"
64 - name: aaf_locator_name
65 value: "{{.Values.global.aaf.aaf_locator_name}}"
66 - name: aaf_locator_name_oom
67 value: "{{.Values.global.aaf.aaf_locator_name_oom}}"
68 - name: CASSANDRA_CLUSTER
69 value: "{{.Values.global.aaf.cass.fqdn}}.{{ .Release.Namespace }}"
70 # - name: CASSANDRA_USER
72 # - name: CASSANDRA_PASSWORD
74 # - name: CASSANDRA_PORT
76 - name: {{ include "common.name" . }}
77 command: ["/bin/bash","-c","cd /opt/app/aaf && /bin/bash bin/pod_wait.sh aaf-fs aaf-locate && exec bin/fs"]
78 image: {{ .Values.global.repository }}/onap/aaf/aaf_fs:{{.Values.global.aaf.imageVersion}}
79 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
81 - mountPath: "/opt/app/osaaf"
83 - mountPath: "/opt/app/aaf/status"
85 - mountPath: /etc/localtime
88 {{- if eq .Values.liveness.enabled true }}
91 port: {{ .Values.service.internalPort }}
92 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
93 periodSeconds: {{ .Values.liveness.periodSeconds }}
97 port: {{ .Values.service.internalPort }}
98 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
99 periodSeconds: {{ .Values.readiness.periodSeconds }}
101 {{ include "common.resources" . | indent 12 }}
102 {{- if .Values.nodeSelector }}
104 {{ toYaml .Values.nodeSelector | indent 10 }}
106 {{- if .Values.affinity }}
108 {{ toYaml .Values.affinity | indent 10 }}
114 - name: aaf-status-vol
115 persistentVolumeClaim:
116 claimName: {{ .Release.Name }}-aaf-status-pvc
117 - name: aaf-config-vol
118 persistentVolumeClaim:
119 claimName: {{ .Release.Name }}-aaf-config-pvc
121 - name: "{{ include "common.namespace" . }}-docker-registry-key"