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: {{ .Release.Name }}
23 heritage: {{ .Release.Service }}
25 replicas: {{ .Values.replicaCount }}
29 app: {{ include "common.name" . }}
30 release: {{ .Release.Name }}
32 hostname: {{ .Values.global.dmaapDrProvName }}
38 - {{ .Values.config.dmaapDrDb.mariadbContName }}
44 fieldPath: metadata.namespace
45 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
46 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
47 name: {{ include "common.name" . }}-readiness
49 - name: {{ include "common.name" . }}
50 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
51 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
53 - containerPort: {{ .Values.global.dmaapDrProvExtPort }}
54 - containerPort: {{ .Values.global.dmaapDrProvExtPort2 }}
55 {{- if eq .Values.liveness.enabled true }}
58 port: {{ .Values.global.dmaapDrProvExtPort }}
59 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
60 periodSeconds: {{ .Values.liveness.periodSeconds }}
64 port: {{ .Values.global.dmaapDrProvExtPort }}
65 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
66 periodSeconds: {{ .Values.readiness.periodSeconds }}
68 - mountPath: /etc/localtime
71 - mountPath: /opt/app/datartr/etc/provserver.properties
72 name: {{ include "common.fullname" . }}-config
73 subPath: provserver.properties
74 - mountPath: /opt/app/datartr/etc/drProvCadi.properties
75 name: {{ include "common.fullname" . }}-config
76 subPath: drProvCadi.properties
77 - mountPath: /opt/app/datartr/etc/logback.xml
78 name: {{ include "common.fullname" . }}-log-conf
80 - mountPath: {{ .Values.global.loggingDirectory }}
81 name: {{ include "common.fullname" . }}-logs
83 {{ include "common.resources" . | indent 12 }}
84 {{- if .Values.nodeSelector }}
86 {{ toYaml .Values.nodeSelector | indent 10 }}
88 {{- if .Values.affinity }}
90 {{ toYaml .Values.affinity | indent 10 }}
92 # Filebeat sidecar container
93 - name: {{ include "common.name" . }}-filebeat-onap
94 image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
95 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
97 - name: {{ include "common.fullname" . }}-filebeat-conf
98 mountPath: /usr/share/filebeat/filebeat.yml
100 - name: {{ include "common.fullname" . }}-data-filebeat
101 mountPath: /usr/share/filebeat/data
102 - name: {{ include "common.fullname" . }}-logs
103 mountPath: /var/log/onap/datarouter-prov
108 - name: {{ include "common.fullname" . }}-config
110 name: {{ include "common.fullname" . }}-configmap
112 - key: provserver.properties
113 path: provserver.properties
114 - key: drProvCadi.properties
115 path: drProvCadi.properties
116 - name: {{ include "common.fullname" . }}-log-conf
118 name: {{ include "common.fullname" . }}-log
119 - name: {{ include "common.fullname" . }}-filebeat-conf
121 name: {{ include "common.fullname" . }}-dmaap-dr-prov-filebeat-configmap
122 - name: {{ include "common.fullname" . }}-data-filebeat
124 - name: {{ include "common.fullname" . }}-logs
127 - name: "{{ include "common.namespace" . }}-docker-registry-key"