From 980a13d5e723a92e7f60f1d3e19e8aaba4303d21 Mon Sep 17 00:00:00 2001 From: Jimmy Song Date: Mon, 8 Jan 2018 18:43:06 +0800 Subject: [PATCH] get host ip address from pod --- appendix/tricks.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/appendix/tricks.md b/appendix/tricks.md index 1a00ede42..4fb6a64b0 100644 --- a/appendix/tricks.md +++ b/appendix/tricks.md @@ -178,6 +178,10 @@ spec: valueFrom: fieldRef: fieldPath: status.podIP + - name: HOST_IP + valueFrom: + fieldRef: + fieldPath: status.hostIP - name: MY_POD_SERVICE_ACCOUNT valueFrom: fieldRef: