From 37f6880b8aaf7c886f4b17defc3b7a87eb8fc617 Mon Sep 17 00:00:00 2001 From: Manuel de Brito Fontes Date: Fri, 2 Feb 2018 14:03:53 -0300 Subject: [PATCH] Show pod information in http-svc example --- 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 58f3c527e6..159518ff56 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 ---