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.
15 apiVersion: extensions/v1beta1
18 name: {{ include "common.fullname" . }}
19 namespace: {{ include "common.namespace" . }}
21 app: {{ include "common.name" . }}
22 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
23 release: {{ include "common.release" . }}
24 heritage: {{ .Release.Service }}
26 replicas: {{ .Values.replicaCount }}
30 app: {{ include "common.name" . }}
31 release: {{ include "common.release" . }}
34 {{- if .Values.global.aafEnabled }}
45 fieldPath: metadata.namespace
46 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
47 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
48 name: {{ include "common.name" . }}-aaf-readiness
49 - name: {{ include "common.name" . }}-dbc-aaf-config
50 image: "{{ include "common.repository" . }}/{{ .Values.global.aafAgentImage }}"
51 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
52 command: ["bash","-c","exec /opt/app/aaf_config/bin/agent.sh"]
54 - mountPath: {{ .Values.persistence.aafCredsPath }}
55 name: {{ include "common.name" . }}-aaf-config
58 value: "{{ .Values.aafConfig.fqi }}"
59 - name: aaf_locate_url
60 value: "https://aaf-locate.{{ .Release.Namespace }}:8095"
61 - name: aaf_locator_container
62 value: "{{ .Values.global.aafLocatorContainer }}"
63 - name: aaf_locator_container_ns
64 value: "{{ .Release.Namespace }}"
65 - name: aaf_locator_fqdn
66 value: "{{ .Values.aafConfig.fqdn }}"
67 - name: aaf_locator_public_fqdn
68 value: "{{.Values.aafConfig.publicFqdn}}"
69 - name: aaf_locator_app_ns
70 value: "{{ .Values.global.aafAppNs }}"
72 value: "{{ .Values.aafConfig.aafDeployFqi }}"
73 - name: DEPLOY_PASSWORD
76 name: {{ include "common.fullname" . }}-secret
77 key: aaf-deploy-password
78 - name: cadi_longitude
79 value: "{{ .Values.aafConfig.cadiLongitude }}"
81 value: "{{ .Values.aafConfig.cadiLatitude }}"
83 {{- if .Values.PG.enabled }}
88 - {{ .Values.postgres.nameOverride }}
94 fieldPath: metadata.namespace
95 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
96 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
97 name: {{ include "common.name" . }}-postgres-readiness
100 - name: {{ include "common.name" . }}
101 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
102 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
104 - containerPort: {{ .Values.service.internalPort }}
105 - containerPort: {{ .Values.service.internalPort2 }}
106 {{ if eq .Values.liveness.enabled true -}}
109 port: {{ .Values.service.internalPort }}
111 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
112 periodSeconds: {{ .Values.liveness.periodSeconds }}
115 host: {{ .Values.dmaapMessageRouterService }}
118 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
119 periodSeconds: {{ .Values.readiness.periodSeconds }}
122 - mountPath: /etc/localtime
125 # NOTE: on the following several configMaps, careful to include / at end
126 # since there may be more than one file in each mountPath
127 - name: {{ include "common.name" . }}-config
128 mountPath: /opt/app/config/conf/
129 - name: {{ include "common.name" . }}-aaf-config
130 mountPath: /opt/app/dmaapbc/etc/org.onap.dmaap-bc.props
131 subPath: org.onap.dmaap-bc.props
133 {{ include "common.resources" . }}
134 {{- if .Values.nodeSelector }}
136 {{ toYaml .Values.nodeSelector | indent 10 }}
138 {{- if .Values.affinity }}
140 {{ toYaml .Values.affinity | indent 10 }}
146 - name: {{ include "common.name" . }}-config
148 name: {{ include "common.fullname" . }}-config
149 - name: {{ include "common.name" . }}-aaf-config
151 name: {{ include "common.fullname" . }}-aaf-config
153 - name: "{{ include "common.namespace" . }}-docker-registry-key"