From c8ed9be79cf2355f35f6dceda72ef427097fb348 Mon Sep 17 00:00:00 2001 From: liaozan <378024053@qq.com> Date: Sun, 9 Jul 2023 04:35:31 +0800 Subject: [PATCH] Set the pod port name --- k8s-deploy-template.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/k8s-deploy-template.yaml b/k8s-deploy-template.yaml index 94a04ce..abe1ecf 100644 --- a/k8s-deploy-template.yaml +++ b/k8s-deploy-template.yaml @@ -42,9 +42,11 @@ spec: limits: memory: ${MEMORY_LIMIT} ports: - - containerPort: ${PORT} + - name: service + containerPort: ${PORT} protocol: TCP - - containerPort: 1024 + - name: actuator + containerPort: 1024 protocol: TCP startupProbe: httpGet: @@ -75,4 +77,4 @@ spec: - name: ${APP_NAME}-volume hostPath: path: /share/pod/data/${APP_NAME} - type: DirectoryOrCreate \ No newline at end of file + type: DirectoryOrCreate -- GitLab