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.
15 apiVersion: extensions/v1beta1
18 name: {{ include "common.fullname" . }}
19 namespace: {{ include "common.namespace" . }}
21 app: {{ include "common.name" . }}
22 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
23 release: {{ .Release.Name }}
24 heritage: {{ .Release.Service }}
26 replicas: {{ .Values.replicaCount }}
30 app: {{ include "common.name" . }}
31 release: {{ .Release.Name }}
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: {{ .Chart.Name }}
51 - /tmp/start-jboss-server.sh
52 image: "{{ .Values.repository | default .Values.global.repository }}/{{ .Values.image }}"
53 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
55 - containerPort: {{ .Values.service.internalPort }}
56 - containerPort: {{ .Values.service.internalPort2 }}
57 - containerPort: {{ .Values.service.internalPort3 }}
58 - containerPort: {{ .Values.service.internalPort4 }}
59 - containerPort: {{ .Values.service.internalPort5 }}
60 # disable liveness probe when breakpoints set in debugger
61 # so K8s doesn't restart unresponsive container
62 {{- if eq .Values.liveness.enabled true }}
65 port: {{ .Values.service.internalPort }}
66 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
67 periodSeconds: {{ .Values.liveness.periodSeconds }}
71 port: {{ .Values.service.internalPort }}
72 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
73 periodSeconds: {{ .Values.readiness.periodSeconds }}
76 value: {{ .Values.global.debugEnabled | default .Values.debugEnabled | quote }}
78 - mountPath: /etc/localtime
83 - mountPath: /tmp/start-jboss-server.sh
85 subPath: start-jboss-server.sh
86 - mountPath: /opt/jboss/standalone/configuration/standalone-full-ha-mso.xml
88 subPath: standalone-full-ha-mso.xml
90 - mountPath: /var/log/onap
92 - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-po-adapter-config/logback.network.xml
94 subPath: logback.network.xml
95 - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-po-adapter-config/logback.tenant.xml
97 subPath: logback.tenant.xml
98 - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-po-adapter-config/logback.vnf.xml
100 subPath: logback.vnf.xml
101 - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-po-adapter-config/logback.vfc.xml
103 subPath: logback.vfc.xml
104 - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-api-handler-infra-config/logback.apihandler-infra.xml
106 subPath: logback.apihandler-infra.xml
107 - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-appc-adapter-config/logback.appc.xml
109 subPath: logback.appc.xml
110 - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-requests-db-adapter-config/logback.msorequestsdbadapter.xml
112 subPath: logback.msorequestsdbadapter.xml
113 - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-asdc-controller-config/logback.asdc.xml
115 subPath: logback.asdc.xml
116 - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-sdnc-adapter-config/logback.sdnc.xml
118 subPath: logback.sdnc.xml
119 - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-bpmn-config/logback.bpmn.xml
121 subPath: logback.bpmn.xml
122 - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-workflow-message-adapter-config/logback.workflow-message-adapter.xml
124 subPath: logback.workflow-message-adapter.xml
126 {{ toYaml .Values.resources | indent 12 }}
127 {{- if .Values.nodeSelector }}
129 {{ toYaml .Values.nodeSelector | indent 10 }}
131 {{- if .Values.affinity }}
133 {{ toYaml .Values.affinity | indent 10 }}
136 # side car containers
137 - name: filebeat-onap
138 image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
139 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
141 - mountPath: /usr/share/filebeat/filebeat.yml
143 subPath: filebeat.yml
144 - mountPath: /var/log/onap
146 - mountPath: /usr/share/filebeat/data
147 name: so-data-filebeat
155 name: so-log-configmap
156 - name: filebeat-conf
158 name: so-filebeat-configmap
163 - key: mso-docker.json
164 path: mso-docker.json
169 - key: encryption.key
176 - key: standalone-full-ha-mso.xml
177 path: standalone-full-ha-mso.xml
181 - name: so-data-filebeat
183 - name: so-docker-files
185 name: so-docker-file-configmap
187 - key: start-jboss-server.sh
188 path: start-jboss-server.sh
191 - name: "{{ include "common.namespace" . }}-docker-registry-key"