1 # Modifications Copyright © 2018 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.
17 metadata: {{- include "common.resourceMetadata" . | nindent 2 }}
19 selector: {{- include "common.selectors" . | nindent 4 }}
20 replicas: {{ .Values.replicaCount }}
22 metadata: {{- include "common.templateMetadata" . | nindent 6 }}
24 {{- if or .Values.global.aafEnabled .Values.PG.enabled }}
26 {{- if .Values.global.aafEnabled }}
27 - name: {{ include "common.name" . }}-aaf-readiness
42 fieldPath: metadata.namespace
43 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
44 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
45 - name: {{ include "common.name" . }}-aaf-config
46 image: "{{ include "common.repository" . }}/{{ .Values.global.aafAgentImage }}"
47 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
48 command: ["bash","-c","exec /opt/app/aaf_config/bin/agent.sh"]
50 - mountPath: {{ .Values.persistence.aafCredsPath }}
51 name: {{ include "common.name" . }}-aaf-config
54 value: "{{ .Values.aafConfig.fqi }}"
55 - name: aaf_locate_url
56 value: "https://aaf-locate.{{ .Release.Namespace }}:8095"
57 - name: aaf_locator_container
58 value: "{{ .Values.global.aafLocatorContainer }}"
59 - name: aaf_locator_container_ns
60 value: "{{ .Release.Namespace }}"
61 - name: aaf_locator_fqdn
62 value: "{{ .Values.aafConfig.fqdn }}"
63 - name: aaf_locator_public_fqdn
64 value: "{{.Values.aafConfig.publicFqdn}}"
65 - name: aaf_locator_app_ns
66 value: "{{ .Values.global.aafAppNs }}"
68 value: "{{ .Values.aafConfig.aafDeployFqi }}"
69 - name: DEPLOY_PASSWORD
72 name: {{ include "common.fullname" . }}-secret
73 key: aaf-deploy-password
74 - name: cadi_longitude
75 value: "{{ .Values.aafConfig.cadiLongitude }}"
77 value: "{{ .Values.aafConfig.cadiLatitude }}"
79 {{- if .Values.PG.enabled }}
80 - name: {{ include "common.name" . }}-postgres-readiness
85 - {{ .Values.postgres.nameOverride }}
91 fieldPath: metadata.namespace
92 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
93 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
97 - name: {{ include "common.name" . }}
98 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
99 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
100 ports: {{ include "common.containerPorts" . | nindent 10 }}
101 {{ if eq .Values.liveness.enabled true -}}
104 port: {{ .Values.liveness.port }}
106 scheme: {{ if (include "common.needTLS" .) }}HTTPS{{ else }}HTTP{{ end }}
107 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
108 periodSeconds: {{ .Values.liveness.periodSeconds }}
112 port: {{ .Values.readiness.port }}
114 scheme: {{ if (include "common.needTLS" .) }}HTTPS{{ else }}HTTP{{ end }}
115 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
116 periodSeconds: {{ .Values.readiness.periodSeconds }}
118 - mountPath: /etc/localtime
121 # NOTE: on the following several configMaps, careful to include / at end
122 # since there may be more than one file in each mountPath
123 - name: {{ include "common.name" . }}-config
124 mountPath: /opt/app/config/conf/
125 - name: {{ include "common.name" . }}-aaf-config
126 mountPath: /opt/app/dmaapbc/etc/org.onap.dmaap-bc.props
127 subPath: org.onap.dmaap-bc.props
128 resources: {{ include "common.resources" . | nindent 12 }}
129 {{- if .Values.nodeSelector }}
130 nodeSelector: {{ toYaml .Values.nodeSelector | nindent 10 }}
132 {{- if .Values.affinity }}
133 affinity: {{ toYaml .Values.affinity | nindent 10 }}
139 - name: {{ include "common.name" . }}-config
141 name: {{ include "common.fullname" . }}-config
142 - name: {{ include "common.name" . }}-aaf-config
144 name: {{ include "common.fullname" . }}-aaf-config
146 - name: "{{ include "common.namespace" . }}-docker-registry-key"