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: {{ include "common.release" . }}
22 heritage: {{ .Release.Service }}
23 name: {{ include "common.fullname" . }}
24 namespace: {{ include "common.namespace" . }}
26 replicas: {{ .Values.global.aaf.gui.replicas }}
30 app: {{ include "common.name" . }}
31 release: {{ include "common.release" . }}
34 - name: fix-permission
40 chmod -R 775 /opt/app/aaf/status
41 chown -R 1000:1000 /opt/app/aaf/status
42 chmod -R 775 /opt/app/osaaf
43 chown -R 1000:1000 /opt/app/osaaf
44 image: "{{ .Values.global.busyboxRepository }}/{{ .Values.global.busyboxImage }}"
45 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
47 - mountPath: /opt/app/osaaf
49 - mountPath: /opt/app/aaf/status
51 - name: {{ include "common.name" . }}-config-container
52 image: {{ .Values.global.repository }}/{{.Values.global.aaf.config.image}}
53 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
54 command: ["bash","-c","cd /opt/app/aaf_config && bin/pod_wait.sh config aaf-service aaf-locate remove && bin/agent.sh"]
56 - mountPath: "/opt/app/osaaf"
58 - mountPath: "/opt/app/aaf/status"
62 value: "{{ .Values.global.aaf.aaf_env }}"
64 value: "{{ .Values.global.aaf.cadi_latitude }}"
65 - name: cadi_longitude
66 value: "{{ .Values.global.aaf.cadi_longitude }}"
67 - name: cadi_x509_issuers
68 value: "{{ .Values.global.aaf.cadi_x509_issuers }}"
69 - name: aaf_locate_url
70 value: "https://aaf-locate.{{ .Release.Namespace}}:{{.Values.global.aaf.locate.internal_port}}"
71 - name: aaf_locator_container
74 value: "{{ .Values.global.aaf.aaf_release }}"
75 - name: aaf_locator_container_ns
76 value: "{{ .Release.Namespace }}"
77 - name: aaf_locator_public_fqdn
78 value: "{{.Values.global.aaf.public_fqdn}}"
79 - name: aaf_locator_name
80 value: "{{.Values.global.aaf.aaf_locator_name}}"
81 - name: aaf_locator_name_oom
82 value: "{{.Values.global.aaf.aaf_locator_name_oom}}"
83 - name: cm_always_ignore_ips
85 - name: CASSANDRA_CLUSTER
86 value: "{{.Values.global.aaf.cass.fqdn}}.{{ .Release.Namespace }}"
87 # - name: CASSANDRA_USER
89 # - name: CASSANDRA_PASSWORD
91 # - name: CASSANDRA_PORT
94 - name: {{ include "common.name" . }}
95 command: ["/bin/bash","-c","cd /opt/app/aaf && /bin/bash bin/pod_wait.sh aaf-gui aaf-locate && exec bin/gui"]
96 image: {{ .Values.global.repository }}/{{.Values.global.aaf.image}}
97 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
99 - mountPath: "/opt/app/osaaf"
101 - mountPath: "/opt/app/aaf/status"
103 - mountPath: /etc/localtime
106 {{- if eq .Values.liveness.enabled true }}
109 port: {{ .Values.global.aaf.gui.internal_port }}
110 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
111 periodSeconds: {{ .Values.liveness.periodSeconds }}
115 port: {{ .Values.global.aaf.gui.internal_port }}
116 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
117 periodSeconds: {{ .Values.readiness.periodSeconds }}
119 {{ include "common.resources" . | indent 12 }}
120 {{- if .Values.nodeSelector }}
122 {{ toYaml .Values.nodeSelector | indent 10 }}
124 {{- if .Values.affinity }}
126 {{ toYaml .Values.affinity | indent 10 }}
132 - name: aaf-status-vol
133 persistentVolumeClaim:
134 claimName: {{ include "common.release" . }}-aaf-status
135 - name: aaf-config-vol
136 persistentVolumeClaim:
137 claimName: {{ include "common.release" . }}-aaf-config
139 - name: "{{ include "common.namespace" . }}-docker-registry-key"