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 -}} 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