From 3f5e5e1c279efb8cc2a9ef28e4de8d57ac7fe80e Mon Sep 17 00:00:00 2001 From: liaozan <378024053@qq.com> Date: Thu, 26 Oct 2023 14:28:33 +0800 Subject: [PATCH] Add podIp env --- k8s-deploy-template.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/k8s-deploy-template.yaml b/k8s-deploy-template.yaml index 78bd636..442453d 100644 --- a/k8s-deploy-template.yaml +++ b/k8s-deploy-template.yaml @@ -47,6 +47,10 @@ spec: valueFrom: fieldRef: fieldPath: status.hostIP + - name: POD_IP + valueFrom: + fieldRef: + fieldPath: status.podIP startupProbe: httpGet: scheme: HTTP -- GitLab