1 apiVersion: apps/v1beta1
4 name: {{ include "common.fullname" . }}
5 namespace: {{ include "common.namespace" . }}
7 app: {{ include "common.name" . }}
8 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
9 release: {{ .Release.Name }}
10 heritage: {{ .Release.Service }}
12 serviceName: "{{ .Values.service.name }}-cluster"
13 replicas: {{ .Values.replicaCount }}
14 podManagementPolicy: Parallel
18 app: {{ include "common.name" . }}
19 release: {{ .Release.Name }}
22 - name: "{{ include "common.namespace" . }}-docker-registry-key"
28 - {{ .Values.mysql.nameOverride }}
34 fieldPath: metadata.namespace
35 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
36 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
37 name: {{ include "common.name" . }}-readiness
39 - name: {{ include "common.name" . }}
40 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
41 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
43 - /opt/appc/bin/startODL.sh
45 - containerPort: {{ .Values.service.internalPort }}
46 - containerPort: {{ .Values.service.externalPort2 }}
49 port: {{ .Values.service.internalPort }}
50 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
51 periodSeconds: {{ .Values.readiness.periodSeconds }}
53 - name: MYSQL_ROOT_PASSWORD
56 name: {{ template "common.fullname" . }}
58 - name: SDNC_CONFIG_DIR
59 value: "{{ .Values.config.configDir }}"
60 - name: APPC_CONFIG_DIR
61 value: "{{ .Values.config.configDir }}"
62 - name: DMAAP_TOPIC_ENV
63 value: "{{ .Values.config.dmaapTopic }}"
64 - name: ENABLE_ODL_CLUSTER
65 value: "{{ .Values.config.enableClustering }}"
67 value: "{{ .Values.replicaCount }}"
69 - mountPath: /etc/localtime
72 - mountPath: /opt/onap/appc/data/properties/dblib.properties
73 name: onap-appc-data-properties
74 subPath: dblib.properties
75 - mountPath: /opt/onap/appc/data/properties/svclogic.properties
76 name: onap-appc-data-properties
77 subPath: svclogic.properties
78 - mountPath: /opt/onap/appc/data/properties/appc.properties
79 name: onap-appc-data-properties
80 subPath: appc.properties
81 - mountPath: /opt/onap/appc/data/properties/aaiclient.properties
82 name: onap-appc-data-properties
83 subPath: aaiclient.properties
84 - mountPath: /opt/onap/appc/svclogic/config/svclogic.properties
85 name: onap-appc-svclogic-config
86 subPath: svclogic.properties
87 - mountPath: /opt/onap/appc/svclogic/bin/showActiveGraphs.sh
88 name: onap-appc-svclogic-bin
89 subPath: showActiveGraphs.sh
90 - mountPath: /opt/onap/appc/bin/startODL.sh
93 - mountPath: /opt/onap/appc/bin/installAppcDb.sh
95 subPath: installAppcDb.sh
96 - mountPath: /opt/onap/ccsdk/data/properties/dblib.properties
97 name: onap-sdnc-data-properties
98 subPath: dblib.properties
99 - mountPath: /opt/onap/ccsdk/data/properties/svclogic.properties
100 name: onap-sdnc-data-properties
101 subPath: svclogic.properties
102 - mountPath: /opt/onap/ccsdk/data/properties/aaiclient.properties
103 name: onap-sdnc-data-properties
104 subPath: aaiclient.properties
105 - mountPath: /opt/onap/ccsdk/svclogic/config/svclogic.properties
106 name: onap-sdnc-svclogic-config
107 subPath: svclogic.properties
108 - mountPath: /opt/onap/ccsdk/svclogic/bin/showActiveGraphs.sh
109 name: onap-sdnc-svclogic-bin
110 subPath: showActiveGraphs.sh
111 - mountPath: /opt/onap/ccsdk/bin/startODL.sh
114 - mountPath: /opt/onap/ccsdk/bin/installSdncDb.sh
116 subPath: installSdncDb.sh
117 - mountPath: {{ .Values.persistence.mdsalPath }}
118 name: {{ include "common.fullname" . }}-data
119 - mountPath: /var/log/onap
121 - mountPath: /opt/opendaylight/current/etc/org.ops4j.pax.logging.cfg
123 subPath: org.ops4j.pax.logging.cfg
125 {{ toYaml .Values.resources | indent 12 }}
126 {{- if .Values.nodeSelector }}
128 {{ toYaml .Values.nodeSelector | indent 10 }}
130 {{- if .Values.affinity }}
132 {{ toYaml .Values.affinity | indent 10 }}
135 # side car containers
136 - name: filebeat-onap
137 image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
138 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
140 - mountPath: /usr/share/filebeat/filebeat.yml
142 subPath: filebeat.yml
143 - mountPath: /var/log/onap
145 - mountPath: /usr/share/filebeat/data
151 - name: filebeat-conf
153 name: {{ include "common.fullname" . }}-filebeat
156 name: {{ include "common.fullname" . }}-logging-cfg
159 - name: data-filebeat
161 - name: onap-appc-data-properties
163 name: {{ include "common.fullname" . }}-onap-appc-data-properties
164 - name: onap-appc-svclogic-config
166 name: {{ include "common.fullname" . }}-onap-appc-svclogic-config
167 - name: onap-appc-svclogic-bin
169 name: {{ include "common.fullname" . }}-onap-appc-svclogic-bin
171 - name: onap-appc-bin
173 name: {{ include "common.fullname" . }}-onap-appc-bin
175 - name: onap-sdnc-data-properties
177 name: {{ include "common.fullname" . }}-onap-sdnc-data-properties
178 - name: onap-sdnc-svclogic-config
180 name: {{ include "common.fullname" . }}-onap-sdnc-svclogic-config
181 - name: onap-sdnc-svclogic-bin
183 name: {{ include "common.fullname" . }}-onap-sdnc-svclogic-bin
185 - name: onap-sdnc-bin
187 name: {{ include "common.fullname" . }}-onap-sdnc-bin
189 {{ if not .Values.persistence.enabled }}
190 - name: {{ include "common.fullname" . }}-data
193 volumeClaimTemplates:
195 name: {{ include "common.fullname" . }}-data
197 name: {{ include "common.fullname" . }}
199 accessModes: [ {{ .Values.persistence.accessMode }} ]
200 storageClassName: {{ include "common.fullname" . }}-data
203 storage: {{ .Values.persistence.size }}