From fbd03ddff528c1e74a3cfa7d6a0cdf816c121151 Mon Sep 17 00:00:00 2001 From: liaozan <378024053@qq.com> Date: Thu, 31 Aug 2023 00:13:14 +0800 Subject: [PATCH] Add NODE_IP env --- k8s-deploy-template.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/k8s-deploy-template.yaml b/k8s-deploy-template.yaml index c1012f4..350fa1e 100644 --- a/k8s-deploy-template.yaml +++ b/k8s-deploy-template.yaml @@ -41,6 +41,11 @@ spec: - name: actuator containerPort: 1024 protocol: TCP + env: + - name: NODE_IP + valueFrom: + fieldRef: + fieldPath: status.hostIP startupProbe: httpGet: scheme: HTTP -- GitLab