aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/appc/charts/appc-cdt/templates/deployment.yaml
diff options
context:
space:
mode:
authorBorislav Glozman <Borislav.Glozman@amdocs.com>2018-06-03 17:07:06 +0000
committerGerrit Code Review <gerrit@onap.org>2018-06-03 17:07:06 +0000
commit112a077412effc2703482c535910c4fd916f63e3 (patch)
tree5f2ce2046cd3305547fa78eb73aea5cb4d77898f /kubernetes/appc/charts/appc-cdt/templates/deployment.yaml
parent3dd1b4004420360d2643977690da07dc3368bf0d (diff)
parent1a62b66badfe2fe081020443dc1805ce89e0e547 (diff)
Merge "Add port variable for appc cdt"
Diffstat (limited to 'kubernetes/appc/charts/appc-cdt/templates/deployment.yaml')
-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