From ad2238ca94e27c82720a92bb919e4110c93d1ae0 Mon Sep 17 00:00:00 2001 From: Manuel Alejandro de Brito Fontes Date: Fri, 2 Feb 2018 09:04:18 -0800 Subject: [PATCH] Show pod information in http-svc example (#2027) --- docs/examples/http-svc.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/docs/examples/http-svc.yaml b/docs/examples/http-svc.yaml index 58f3c527e..159518ff5 100644 --- a/docs/examples/http-svc.yaml +++ b/docs/examples/http-svc.yaml @@ -14,6 +14,23 @@ spec: image: gcr.io/google_containers/echoserver:1.8 ports: - containerPort: 8080 + env: + - name: NODE_NAME + valueFrom: + fieldRef: + fieldPath: spec.nodeName + - name: POD_NAME + valueFrom: + fieldRef: + fieldPath: metadata.name + - name: POD_NAMESPACE + valueFrom: + fieldRef: + fieldPath: metadata.namespace + - name: POD_IP + valueFrom: + fieldRef: + fieldPath: status.podIP ---