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: apps/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 }}
26 serviceName: {{ .Values.config.dmaapDrNode.name }}
30 app: {{ include "common.name" . }}
31 release: {{ .Release.Name }}
34 - name: {{ include "common.name" . }}-readiness
35 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
36 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
47 fieldPath: metadata.namespace
49 - name: {{ include "common.name" . }}
50 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
51 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
53 - containerPort: {{.Values.config.dmaapDrNode.externalPort}}
54 - containerPort: {{.Values.config.dmaapDrNode.externalPort2}}
55 {{- if eq .Values.liveness.enabled true }}
58 port: {{.Values.config.dmaapDrNode.internalPort}}
59 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
60 periodSeconds: {{ .Values.liveness.periodSeconds }}
64 port: {{.Values.config.dmaapDrNode.internalPort}}
65 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
66 periodSeconds: {{ .Values.readiness.periodSeconds }}
68 - mountPath: {{ .Values.persistence.spoolPath }}
69 name: {{ include "common.fullname" . }}-spool-data-pvc
70 - mountPath: {{ .Values.persistence.eventLogsPath }}
71 name: {{ include "common.fullname" . }}-event-logs-pvc
72 - mountPath: /etc/localtime
75 - mountPath: /opt/app/datartr/etc/dedicatedFeed.json
76 name: {{ include "common.fullname" . }}-create-feed-config
77 subPath: dedicatedFeed.json
78 - mountPath: /opt/app/datartr/etc/createFeed.sh
79 name: {{ include "common.fullname" . }}-create-feed-config
80 subPath: createFeed.sh
81 - mountPath: /opt/app/datartr/etc/node.properties
82 name: {{ include "common.fullname" . }}-config
83 subPath: node.properties
84 - mountPath: /opt/app/datartr/etc/drNodeCadi.properties
85 name: {{ include "common.fullname" . }}-config
86 subPath: drNodeCadi.properties
91 - /opt/app/datartr/etc/createFeed.sh
93 {{ include "common.resources" . | indent 12 }}
94 {{- if .Values.nodeSelector }}
96 {{ toYaml .Values.nodeSelector | indent 10 }}
98 {{- if .Values.affinity }}
100 {{ toYaml .Values.affinity | indent 10 }}
102 # Filebeat sidecar container
103 - name: {{ include "common.fullname" . }}-filebeat-onap
104 image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
105 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
107 - name: {{ include "common.fullname" . }}-filebeat-conf
108 mountPath: /usr/share/filebeat/filebeat.yml
109 subPath: filebeat.yml
110 - name: {{ include "common.fullname" . }}-data-filebeat
111 mountPath: /usr/share/filebeat/data
112 - name: {{ include "common.fullname" . }}-event-logs-pvc
113 mountPath: /var/log/onap/datarouter-node
115 - name: "{{ include "common.namespace" . }}-docker-registry-key"
120 - name: {{ include "common.fullname" . }}-create-feed-config
122 name: {{ include "common.fullname" . }}-create-feed-configmap
127 - key: dedicatedFeed.json
128 path: dedicatedFeed.json
129 - name: {{ include "common.fullname" . }}-config
131 name: {{ include "common.fullname" . }}-configmap
133 - key: node.properties
134 path: node.properties
135 - key: drNodeCadi.properties
136 path: drNodeCadi.properties
137 - name: {{ include "common.fullname" . }}-log-conf
139 name: {{ include "common.fullname" . }}-log
140 - name: {{ include "common.fullname" . }}-filebeat-conf
142 name: {{ include "common.fullname" . }}-dmaap-filebeat-configmap
143 - name: {{ include "common.fullname" . }}-data-filebeat
145 - name: {{ include "common.fullname" . }}-event-logs-pvc
147 volumeClaimTemplates:
149 name: {{ include "common.fullname" . }}-spool-data-pvc
151 name: {{ include "common.fullname" . }}
153 accessModes: [ {{ .Values.persistence.accessMode }} ]
154 storageClassName: {{ include "common.fullname" . }}-spool-data-stcl
157 storage: {{ .Values.persistence.spoolSize }}
160 name: {{ include "common.fullname" . }}-spool-data-pv
162 name: {{ include "common.fullname" . }}-event-logs-pvc
164 name: {{ include "common.fullname" . }}
166 accessModes: [ {{ .Values.persistence.accessMode }} ]
167 storageClassName: {{ include "common.fullname" . }}-event-logs-stcl
170 storage: {{ .Values.persistence.eventLogSize }}
173 name: {{ include "common.fullname" . }}-event-logs-pv