From 57457b840171c64a843504b766dfbb753d5c0d34 Mon Sep 17 00:00:00 2001 From: Ariel Sosnovsky Date: Thu, 9 Nov 2023 13:41:14 -0500 Subject: [PATCH] port names --- k8s/apps/videohosting/templates/sts-linuxservices.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/k8s/apps/videohosting/templates/sts-linuxservices.yaml b/k8s/apps/videohosting/templates/sts-linuxservices.yaml index 7dbb41a..ff987ef 100644 --- a/k8s/apps/videohosting/templates/sts-linuxservices.yaml +++ b/k8s/apps/videohosting/templates/sts-linuxservices.yaml @@ -91,13 +91,13 @@ spec: {{ range $portName, $portValue := $v.ports.tcp }} - containerPort: {{ $portValue }} protocol: TCP - name: {{$portName}} + name: TCP-{{$portName}} {{ end }} {{- if $v.ports.udp -}} {{ range $portName, $portValue := $v.ports.udp }} - containerPort: {{ $portValue }} protocol: UDP - name: {{$portName}} + name: UDP-{{$portName}} {{ end }} {{ end }} volumeMounts: @@ -109,7 +109,7 @@ spec: livenessProbe: httpGet: path: {{$v.health.liveness}} - port: web + port: TCP-web scheme: HTTP initialDelaySeconds: 10 failureThreshold: 10 @@ -119,7 +119,7 @@ spec: readinessProbe: httpGet: path: {{$v.health.readiness}} - port: web + port: TCP-web scheme: HTTP initialDelaySeconds: 10 failureThreshold: 10 @@ -127,7 +127,7 @@ spec: {{ end }} startupProbe: tcpSocket: - port: web + port: TCP-web initialDelaySeconds: 10 failureThreshold: 10 timeoutSeconds: 30