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
48 - name: {{ include "common.name" . }}-permission-fixer
49 image: "{{ .Values.global.busyBoxRepository }}/{{ .Values.global.busyBoxImage }}"
50 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
52 - mountPath: {{ .Values.persistence.spoolPath }}
53 name: {{ include "common.fullname" . }}-spool-data-pvc
54 - mountPath: {{ .Values.persistence.eventLogsPath }}
55 name: {{ include "common.fullname" . }}-event-logs-pvc
56 command: ["chown","-Rf","1000:1001", "/opt/app/datartr"]
58 - name: {{ include "common.name" . }}
59 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
60 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
62 - containerPort: {{.Values.config.dmaapDrNode.externalPort}}
63 - containerPort: {{.Values.config.dmaapDrNode.externalPort2}}
64 {{- if eq .Values.liveness.enabled true }}
67 port: {{.Values.config.dmaapDrNode.internalPort}}
68 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
69 periodSeconds: {{ .Values.liveness.periodSeconds }}
73 port: {{.Values.config.dmaapDrNode.internalPort}}
74 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
75 periodSeconds: {{ .Values.readiness.periodSeconds }}
77 - mountPath: {{ .Values.persistence.spoolPath }}
78 name: {{ include "common.fullname" . }}-spool-data-pvc
79 - mountPath: {{ .Values.persistence.eventLogsPath }}
80 name: {{ include "common.fullname" . }}-event-logs-pvc
81 - mountPath: /etc/localtime
84 - mountPath: /opt/app/datartr/etc/dedicatedFeed.json
85 name: {{ include "common.fullname" . }}-create-feed-config
86 subPath: dedicatedFeed.json
87 - mountPath: /opt/app/datartr/etc/createFeed.sh
88 name: {{ include "common.fullname" . }}-create-feed-config
89 subPath: createFeed.sh
90 - mountPath: /opt/app/datartr/etc/node.properties
91 name: {{ include "common.fullname" . }}-config
92 subPath: node.properties
93 - mountPath: /opt/app/datartr/etc/drNodeCadi.properties
94 name: {{ include "common.fullname" . }}-config
95 subPath: drNodeCadi.properties
100 - /opt/app/datartr/etc/createFeed.sh
102 {{ include "common.resources" . | indent 12 }}
103 {{- if .Values.nodeSelector }}
105 {{ toYaml .Values.nodeSelector | indent 10 }}
107 {{- if .Values.affinity }}
109 {{ toYaml .Values.affinity | indent 10 }}
111 # Filebeat sidecar container
112 - name: {{ include "common.name" . }}-filebeat-onap
113 image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
114 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
116 - name: {{ include "common.fullname" . }}-filebeat-conf
117 mountPath: /usr/share/filebeat/filebeat.yml
118 subPath: filebeat.yml
119 - name: {{ include "common.fullname" . }}-data-filebeat
120 mountPath: /usr/share/filebeat/data
121 - name: {{ include "common.fullname" . }}-event-logs-pvc
122 mountPath: /var/log/onap/datarouter-node
124 - name: "{{ include "common.namespace" . }}-docker-registry-key"
129 - name: {{ include "common.fullname" . }}-create-feed-config
131 name: {{ include "common.fullname" . }}-create-feed-configmap
136 - key: dedicatedFeed.json
137 path: dedicatedFeed.json
138 - name: {{ include "common.fullname" . }}-config
140 name: {{ include "common.fullname" . }}-configmap
142 - key: node.properties
143 path: node.properties
144 - key: drNodeCadi.properties
145 path: drNodeCadi.properties
146 - name: {{ include "common.fullname" . }}-log-conf
148 name: {{ include "common.fullname" . }}-log
149 - name: {{ include "common.fullname" . }}-filebeat-conf
151 name: {{ .Release.Name }}-dmaap-filebeat-configmap
152 - name: {{ include "common.fullname" . }}-data-filebeat
154 - name: {{ include "common.fullname" . }}-event-logs-pvc
156 volumeClaimTemplates:
158 name: {{ include "common.fullname" . }}-spool-data-pvc
160 name: {{ include "common.fullname" . }}
162 accessModes: [ {{ .Values.persistence.accessMode }} ]
163 storageClassName: {{ include "common.fullname" . }}-spool-data-stcl
166 storage: {{ .Values.persistence.spoolSize }}
169 name: {{ include "common.fullname" . }}-spool-data-pv
171 name: {{ include "common.fullname" . }}-event-logs-pvc
173 name: {{ include "common.fullname" . }}
175 accessModes: [ {{ .Values.persistence.accessMode }} ]
176 storageClassName: {{ include "common.fullname" . }}-event-logs-stcl
179 storage: {{ .Values.persistence.eventLogSize }}
182 name: {{ include "common.fullname" . }}-event-logs-pv