From 28814c479fa435f7f43955c841a5e79cc090b5f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=89=E7=94=B0=E3=80=80=E3=82=A2=E3=83=9D=E3=83=AD?= Date: Wed, 24 Jun 2020 15:04:00 -0700 Subject: [PATCH 1/2] update test example --- k8s/example/ec.env | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/k8s/example/ec.env b/k8s/example/ec.env index b2aaf6c80..399fffac5 100644 --- a/k8s/example/ec.env +++ b/k8s/example/ec.env @@ -1,7 +1,7 @@ mod=client -lpt=7990 +lpt=:7990 cid=hello csc=DWDdfddfs@ aid=31fwe tid=f3f3rv -hca=7991 +hca=:7991 From 8ea05f356f7e588b9848d19cdfdb0d673623754f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=89=E7=94=B0=E3=80=80=E3=82=A2=E3=83=9D=E3=83=AD?= Date: Wed, 24 Jun 2020 15:08:53 -0700 Subject: [PATCH 2/2] fix port format --- k8s/agent/templates/_helpers.tpl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/k8s/agent/templates/_helpers.tpl b/k8s/agent/templates/_helpers.tpl index e0db4a77c..dbb92758c 100644 --- a/k8s/agent/templates/_helpers.tpl +++ b/k8s/agent/templates/_helpers.tpl @@ -67,9 +67,9 @@ Generate container port spec for client agent. Need review for gateway usage */}} {{- define "agent.portSpec" -}} {{- range (split "\n" .Values.global.agtConfig) }} -{{- if contains "lpt" . -}} +{{- if contains "lpt=:" . -}} - name: {{ $.Values.agtK8Config.portName }} - containerPort: {{ (split "=" . )._1|quote }} + containerPort: {{ (split "=:" . )._1 }} protocol: TCP {{- end -}} {{- end -}} @@ -90,9 +90,9 @@ Generate container HEALTH port spec for client agent. Need review for gateway us */}} {{- define "agent.healthPortSpec" -}} {{- range (split "\n" .Values.global.agtConfig) }} -{{- if contains "hca" . -}} +{{- if contains "hca=:" . -}} - name: {{ $.Values.agtK8Config.healthPortName }} - containerPort: {{ (split "=" . )._1|quote }} + containerPort: {{ (split "=:" . )._1 }} protocol: TCP {{- end -}} {{- end -}}