Skip to content

Commit

Permalink
Configure example pod namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
liggitt committed Mar 14, 2017
1 parent 08e351a commit 984a6cd
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 984a6cd

Please sign in to comment.