Fix multicloud deployment contianerPort issue 51/58851/1
authorHuabing Zhao <zhaohuabing@gmail.com>
Fri, 3 Aug 2018 07:31:22 +0000 (07:31 +0000)
committerHuabing Zhao <zhaohuabing@gmail.com>
Fri, 3 Aug 2018 07:31:38 +0000 (07:31 +0000)
It's a tricky workaroud for a possilbe Go template bug

Issue-ID: MULTICLOUD-298
Change-Id: I11fe13d6531f9e159a450db8fbf2842a970b86d9
Signed-off-by: Huabing Zhao <zhaohuabing@gmail.com>
kubernetes/multicloud/charts/multicloud-vio/templates/deployment.yaml

index 110d7aa..6ef2e58 100644 (file)
@@ -65,6 +65,8 @@ spec:
        imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
        ports:
        - containerPort: {{ .Values.service.internalPort }}
+       # disable liveness probe when breakpoints set in debugger
+       # so K8s doesn't restart unresponsive container
        {{- if eq .Values.liveness.enabled true }}
        livenessProbe:
          httpGet:
@@ -77,7 +79,6 @@ spec:
          successThreshold: {{ .Values.liveness.successThreshold }}
          failureThreshold: {{ .Values.liveness.failureThreshold }}
        {{ end -}}
-
        # side car containers
      - image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
        imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}