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 ---