aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/dcaegen2/charts/dcae-servicechange-handler/templates/deployment.yaml
diff options
context:
space:
mode:
authorMichael Hwang <mhwang@research.att.com>2019-07-19 09:52:24 -0400
committerMichael Hwang <mhwang@research.att.com>2019-07-22 21:02:31 +0000
commit5d1eaf5a34ee222388e3b9a187b3552904708ff6 (patch)
treec212626e6ae70d79441a763e5862b955d287beb1 /kubernetes/dcaegen2/charts/dcae-servicechange-handler/templates/deployment.yaml
parent25d245fc8a18f34fa64fca0086acdf19fbc50e0e (diff)
Update inventory and sch charts
* Switch inventory to serve over https * Have SCH use https when making calls to inventory Issue-ID: DCAEGEN2-913 Issue-ID: DCAEGEN2-1597 Signed-off-by: Michael Hwang <mhwang@research.att.com> Change-Id: Id2dc3b2d6f58d1cbfa56f7eeb32e9b3ddba8b16d
Diffstat (limited to 'kubernetes/dcaegen2/charts/dcae-servicechange-handler/templates/deployment.yaml')
-rw-r--r--kubernetes/dcaegen2/charts/dcae-servicechange-handler/templates/deployment.yaml28
1 files changed, 22 insertions, 6 deletions
diff --git a/kubernetes/dcaegen2/charts/dcae-servicechange-handler/templates/deployment.yaml b/kubernetes/dcaegen2/charts/dcae-servicechange-handler/templates/deployment.yaml
index 44ebc42412..d948d3425b 100644
--- a/kubernetes/dcaegen2/charts/dcae-servicechange-handler/templates/deployment.yaml
+++ b/kubernetes/dcaegen2/charts/dcae-servicechange-handler/templates/deployment.yaml
@@ -54,16 +54,23 @@ spec:
fieldRef:
apiVersion: v1
fieldPath: metadata.namespace
+ - name: init-tls
+ env:
+ - name: POD_IP
+ valueFrom:
+ fieldRef:
+ apiVersion: v1
+ fieldPath: status.podIP
+ image: {{ .Values.global.tlsRepository }}/{{ .Values.global.tlsImage }}
+ imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
+ resources: {}
+ volumeMounts:
+ - mountPath: /opt/tls/shared
+ name: tls-info
containers:
- name: {{ include "common.name" . }}
image: "{{ include "common.repository" . }}/{{ .Values.image }}"
imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
- command: ["java"]
- args:
- - "-jar"
- - "/opt/servicechange-handler.jar"
- - "prod"
- - "/opt/config.json"
resources:
{{ include "common.resources" . | indent 12 }}
# disable liveness probe when breakpoints set in debugger
@@ -84,12 +91,21 @@ spec:
- name: {{ include "common.fullname" . }}-sch-config
mountPath: /opt/config.json
subPath: config.json
+ # NOTE: This is tied to the PATH_TO_CACERT env variable
+ - mountPath: /opt/cert/
+ name: tls-info
env:
- name: CONSUL_HOST
value: consul.{{ include "common.namespace" . }}
+ - name: PATH_TO_CACERT
+ value: "/opt/cert/cacert.pem"
+ - name: SCH_ARGS
+ value: "prod /opt/config.json"
volumes:
- name: {{ include "common.fullname" . }}-sch-config
configMap:
name: {{ include "common.fullname" . }}-configmap
+ - emptyDir: {}
+ name: tls-info
imagePullSecrets:
- name: "{{ include "common.namespace" . }}-docker-registry-key"