diff options
Diffstat (limited to 'kubernetes/so/templates/deployment.yaml')
-rw-r--r-- | kubernetes/so/templates/deployment.yaml | 28 |
1 files changed, 23 insertions, 5 deletions
diff --git a/kubernetes/so/templates/deployment.yaml b/kubernetes/so/templates/deployment.yaml index 0727ce80a3..bc01727bd3 100644 --- a/kubernetes/so/templates/deployment.yaml +++ b/kubernetes/so/templates/deployment.yaml @@ -35,7 +35,7 @@ spec: - /root/ready.py args: - --container-name - - mariadb + - {{ .Values.mariadb.nameOverride }} env: - name: NAMESPACE valueFrom: @@ -49,7 +49,7 @@ spec: - name: {{ .Chart.Name }} command: - /tmp/start-jboss-server.sh - image: "{{ .Values.repository | default .Values.global.repository }}/{{ .Values.image }}" + image: "{{ include "common.repository" . }}/{{ .Values.image }}" imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }} ports: - containerPort: {{ .Values.service.internalPort }} @@ -58,14 +58,14 @@ spec: - containerPort: {{ .Values.service.internalPort4 }} - containerPort: {{ .Values.service.internalPort5 }} # disable liveness probe when breakpoints set in debugger - # so K8s doesn't restart unresponsive container - {{- if eq .Values.liveness.enabled true }} + # so K8s doesn't restart unresponsive container + {{ if .Values.liveness.enabled }} livenessProbe: tcpSocket: port: {{ .Values.service.internalPort }} initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }} periodSeconds: {{ .Values.liveness.periodSeconds }} - {{ end -}} + {{ end }} readinessProbe: tcpSocket: port: {{ .Values.service.internalPort }} @@ -86,6 +86,15 @@ spec: - mountPath: /opt/jboss/standalone/configuration/standalone-full-ha-mso.xml name: so-config subPath: standalone-full-ha-mso.xml + - mountPath: /etc/mso/config.d/topology.properties + name: so-config + subPath: topology.properties + - mountPath: /etc/mso/config.d/mso.workflow-message-adapter.properties + name: so-config + subPath: mso.workflow-message-adapter.properties + - mountPath: /etc/mso/config.d/mso.bpmn.urn.properties + name: so-config + subPath: mso.bpmn.urn.properties - mountPath: /var/log/onap name: so-logs @@ -176,6 +185,15 @@ spec: - key: standalone-full-ha-mso.xml path: standalone-full-ha-mso.xml mode: 0644 + - key: topology.properties + path: topology.properties + mode: 0644 + - key: mso.workflow-message-adapter.properties + path: mso.workflow-message-adapter.properties + mode: 0644 + - key: mso.bpmn.urn.properties + path: mso.bpmn.urn.properties + mode: 0644 - name: so-logs emptyDir: {} - name: so-data-filebeat |