Skip to content

Commit

Permalink
Show pod information in http-svc example (#2027)
Browse files Browse the repository at this point in the history
  • Loading branch information
aledbf authored Feb 2, 2018
1 parent bea7db4 commit ad2238c
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docs/examples/http-svc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

---

Expand Down

0 comments on commit ad2238c

Please sign in to comment.