Skip to content

Commit

Permalink
Merge pull request kubernetes#43086 from liggitt/examples-permissions
Browse files Browse the repository at this point in the history
Automatic merge from submit-queue (batch tested with PRs 43122, 43086)

Configure example pod namespaces

Fixes kubernetes#43015 
Fixes kubernetes#43019
Fixes kubernetes#38222
  • Loading branch information
Kubernetes Submit Queue authored Mar 16, 2017
2 parents 2bec20c + 984a6cd commit d1e6638
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/storage/cassandra/cassandra-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ spec:
valueFrom:
fieldRef:
fieldPath: status.podIP
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
readinessProbe:
exec:
command:
Expand Down
4 changes: 4 additions & 0 deletions examples/storage/hazelcast/hazelcast-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ spec:
env:
- name: "DNS_DOMAIN"
value: "cluster.local"
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
ports:
- name: hazelcast
containerPort: 5701

0 comments on commit d1e6638

Please sign in to comment.