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.config.dmaapDrNode.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: /etc/localtime
71 - mountPath: /opt/app/datartr/etc/dedicatedFeed.json
72 subPath: dedicatedFeed.json
74 - mountPath: /opt/app/datartr/etc/createFeed.sh
75 subPath: createFeed.sh
77 - mountPath: /opt/app/datartr/etc/node.properties
78 subPath: node.properties
80 - name: {{ include "common.fullname" . }}-logs
81 mountPath: {{ .Values.global.loggingDirectory }}
86 - /opt/app/datartr/etc/createFeed.sh
88 {{ include "common.resources" . | indent 12 }}
89 {{- if .Values.nodeSelector }}
91 {{ toYaml .Values.nodeSelector | indent 10 }}
93 {{- if .Values.affinity }}
95 {{ toYaml .Values.affinity | indent 10 }}
98 # Filebeat sidecar container
99 - name: {{ include "common.name" . }}-filebeat-onap
100 image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
101 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
103 - name: {{ include "common.fullname" . }}-filebeat-conf
104 mountPath: /usr/share/filebeat/filebeat.yml
105 subPath: filebeat.yml
106 - name: {{ include "common.fullname" . }}-data-filebeat
107 mountPath: /usr/share/filebeat/data
108 - name: {{ include "common.fullname" . }}-logs
109 mountPath: /var/log/onap/datarouter-node
116 name: {{ include "common.fullname" . }}-create-feed-configmap
120 name: {{ include "common.fullname" . }}-node-props-configmap
122 {{- if .Values.persistence.enabled }}
123 persistentVolumeClaim:
124 claimName: {{ include "common.fullname" . }}
128 - name: {{ include "common.fullname" . }}-log-conf
130 name: {{ include "common.fullname" . }}-log
131 - name: {{ include "common.fullname" . }}-filebeat-conf
133 name: {{ .Release.Name }}-dmaap-filebeat-configmap
134 - name: {{ include "common.fullname" . }}-data-filebeat
136 - name: {{ include "common.fullname" . }}-logs
139 - name: "{{ include "common.namespace" . }}-docker-registry-key"