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.
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.oauth.replicas }}
29 app: {{ include "common.name" . }}
30 release: {{ .Release.Name }}
34 app: {{ include "common.name" . }}
35 release: {{ .Release.Name }}
38 - name: {{ include "common.name" . }}-config-container
39 image: {{ .Values.global.repository }}/{{.Values.global.aaf.config.image}}
40 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
41 command: ["bash","-c","cd /opt/app/aaf_config && bin/pod_wait.sh config aaf-service remove && bin/agent.sh"]
43 - mountPath: "/opt/app/osaaf"
45 - mountPath: "/opt/app/aaf/status"
49 value: "{{ .Values.global.aaf.aaf_env }}"
51 value: "{{ .Values.global.aaf.cadi_latitude }}"
52 - name: cadi_longitude
53 value: "{{ .Values.global.aaf.cadi_longitude }}"
54 - name: cadi_x509_issuers
55 value: "{{ .Values.global.aaf.cadi_x509_issuers }}"
56 - name: aaf_locate_url
57 value: "https://aaf-locate.{{ .Release.Namespace}}:{{.Values.global.aaf.locate.internal_port}}"
58 - name: aaf_locator_container
61 value: "{{ .Values.global.aaf.aaf_release }}"
62 - name: aaf_locator_container_ns
63 value: "{{ .Release.Namespace }}"
64 - name: aaf_locator_public_fqdn
65 value: "{{.Values.global.aaf.public_fqdn}}"
66 - name: aaf_locator_name
67 value: "{{.Values.global.aaf.aaf_locator_name}}"
68 - name: aaf_locator_name_oom
69 value: "{{.Values.global.aaf.aaf_locator_name_oom}}"
70 - name: cm_always_ignore_ips
72 - name: CASSANDRA_CLUSTER
73 value: "{{.Values.global.aaf.cass.fqdn}}.{{ .Release.Namespace }}"
74 # - name: CASSANDRA_USER
76 # - name: CASSANDRA_PASSWORD
78 # - name: CASSANDRA_PORT
81 - name: {{ include "common.name" . }}
82 command: ["/bin/bash","-c","cd /opt/app/aaf && /bin/bash bin/pod_wait.sh aaf-oauth aaf-service && exec bin/oauth"]
83 image: {{ .Values.global.repository }}/{{.Values.global.aaf.image}}
84 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
86 - mountPath: "/opt/app/osaaf"
88 - mountPath: "/opt/app/aaf/status"
90 - mountPath: /etc/localtime
93 {{- if eq .Values.liveness.enabled true }}
96 port: {{ .Values.global.aaf.oauth.internal_port }}
97 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
98 periodSeconds: {{ .Values.liveness.periodSeconds }}
102 port: {{ .Values.global.aaf.oauth.internal_port }}
103 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
104 periodSeconds: {{ .Values.readiness.periodSeconds }}
106 {{ include "common.resources" . | indent 12 }}
107 {{- if .Values.nodeSelector }}
109 {{ toYaml .Values.nodeSelector | indent 10 }}
111 {{- if .Values.affinity }}
113 {{ toYaml .Values.affinity | indent 10 }}
119 - name: aaf-status-vol
120 persistentVolumeClaim:
121 claimName: {{ .Release.Name }}-aaf-status-pvc
122 - name: aaf-config-vol
123 persistentVolumeClaim:
124 claimName: {{ .Release.Name }}-aaf-config-pvc
126 - name: "{{ include "common.namespace" . }}-docker-registry-key"