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.
14 apiVersion: extensions/v1beta1
17 name: {{ include "common.fullname" . }}
18 namespace: {{ include "common.namespace" . }}
20 app: {{ include "common.name" . }}
21 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
22 release: {{ include "common.release" . }}
23 heritage: {{ .Release.Service }}
25 replicas: {{ .Values.replicaCount }}
29 app: {{ include "common.name" . }}
30 release: {{ include "common.release" . }}
32 hostname: {{ .Values.global.dmaapDrProvName }}
34 - name: {{ include "common.name" . }}-readiness
35 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
36 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
41 - {{ .Values.config.dmaapDrDb.mariadbContName }}
47 fieldPath: metadata.namespace
48 {{- if .Values.global.aafEnabled }}
50 {{ include "common.certInitializer.initContainer" . | nindent 8 }}
52 - name: {{ include "common.name" . }}-permission-fixer
53 image: "{{ .Values.global.busyBoxRepository }}/{{ .Values.global.busyBoxImage }}"
54 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
55 volumeMounts: {{ include "common.certInitializer.volumeMount" . | nindent 10 }}
56 command: ["chown","-Rf","1000:1001", "/opt/app/"]
60 - name: {{ include "common.name" . }}
61 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
62 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
64 - containerPort: {{ .Values.config.dmaapDrProv.internalPort }}
65 {{- if eq .Values.liveness.enabled true }}
68 port: {{ .Values.config.dmaapDrProv.internalPort }}
69 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
70 periodSeconds: {{ .Values.liveness.periodSeconds }}
74 port: {{ .Values.config.dmaapDrProv.internalPort }}
75 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
76 periodSeconds: {{ .Values.readiness.periodSeconds }}
79 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "dmaap-dr-db-user-secret" "key" "login") | indent 12 }}
81 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "dmaap-dr-db-user-secret" "key" "password") | indent 12 }}
82 volumeMounts: {{ include "common.certInitializer.volumeMount" . | nindent 10 }}
83 - mountPath: /etc/localtime
86 - mountPath: /opt/app/datartr/etc/provserver.properties
87 name: {{ include "common.fullname" . }}-config
88 subPath: provserver.properties
89 - mountPath: /opt/app/datartr/etc/logback.xml
90 name: {{ include "common.fullname" . }}-log-conf
92 - mountPath: {{ .Values.global.loggingDirectory }}
93 name: {{ include "common.fullname" . }}-logs
95 {{ include "common.resources" . }}
96 {{- if .Values.nodeSelector }}
98 {{ toYaml .Values.nodeSelector | indent 10 }}
100 {{- if .Values.affinity }}
102 {{ toYaml .Values.affinity | indent 10 }}
104 # Filebeat sidecar container
105 - name: {{ include "common.name" . }}-filebeat-onap
106 image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
107 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
109 - name: {{ include "common.fullname" . }}-filebeat-conf
110 mountPath: /usr/share/filebeat/filebeat.yml
111 subPath: filebeat.yml
112 - name: {{ include "common.fullname" . }}-data-filebeat
113 mountPath: /usr/share/filebeat/data
114 - name: {{ include "common.fullname" . }}-logs
115 mountPath: /var/log/onap/datarouter-prov
116 volumes: {{ include "common.certInitializer.volumes" . | nindent 6 }}
120 - name: {{ include "common.fullname" . }}-config
122 name: {{ include "common.fullname" . }}-configmap
124 - key: provserver.properties
125 path: provserver.properties
126 - name: {{ include "common.fullname" . }}-log-conf
128 name: {{ include "common.fullname" . }}-log
129 - name: {{ include "common.fullname" . }}-filebeat-conf
131 name: {{ include "common.fullname" . }}-dmaap-dr-prov-filebeat-configmap
132 - name: {{ include "common.fullname" . }}-data-filebeat
134 - name: {{ include "common.fullname" . }}-logs
137 - name: "{{ include "common.namespace" . }}-docker-registry-key"