aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/appc/charts/appc-cdt/templates
diff options
context:
space:
mode:
authorPatrick Brady <pb071s@att.com>2018-05-30 10:56:46 -0700
committerPatrick Brady <pb071s@att.com>2018-05-31 09:01:22 -0700
commit1a62b66badfe2fe081020443dc1805ce89e0e547 (patch)
tree007f8597cefb0ffec5c32be19426e82cf8764b69 /kubernetes/appc/charts/appc-cdt/templates
parent140deb9d2dc25326d0377c68af35c7143311f532 (diff)
Add port variable for appc cdt
Adding a environment variable into the CDT container. This variable will set the port that CDT uses to connect to the APPC backend. Also changing the entry point of the CDT container to run the script that will set the port in the CDT javascript files. Change-Id: I0cba860d95a567e0cc4dd1eee322565c9d3b7d1c Signed-off-by: Patrick Brady <pb071s@att.com> Issue-ID: APPC-924
Diffstat (limited to 'kubernetes/appc/charts/appc-cdt/templates')
-rw-r--r--kubernetes/appc/charts/appc-cdt/templates/deployment.yaml7
1 files changed, 7 insertions, 0 deletions
diff --git a/kubernetes/appc/charts/appc-cdt/templates/deployment.yaml b/kubernetes/appc/charts/appc-cdt/templates/deployment.yaml
index 2226b75bbf..a2cb9fc83a 100644
--- a/kubernetes/appc/charts/appc-cdt/templates/deployment.yaml
+++ b/kubernetes/appc/charts/appc-cdt/templates/deployment.yaml
@@ -21,6 +21,8 @@ spec:
- name: {{ include "common.name" . }}
image: "{{ include "common.repository" . }}/{{ .Values.image }}"
imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
+ command:
+ - /opt/startCdt.sh
ports:
- containerPort: {{ .Values.service.internalPort }}
name: {{ .Values.service.name }}
@@ -39,6 +41,11 @@ spec:
initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
periodSeconds: {{ .Values.readiness.periodSeconds }}
env:
+ # This sets the port that CDT will use to connect to the main appc container.
+ # The 32 is the node port suffix that is used in the main appc oom templates
+ # for nodePort3.
+ - name: CDT_PORT
+ value: "{{ .Values.global.nodePortPrefix | default .Values.nodePortPrefix }}{{ .Values.nodePort3 }}"
volumeMounts:
- mountPath: /etc/localtime
name: localtime