Last active
December 7, 2018 23:29
-
-
Save chiragtoor/ae42cda2c95924e169838b869092ac52 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: ex-cluster | |
spec: | |
replicas: 2 | |
template: | |
metadata: | |
labels: | |
app: ex-cluster | |
spec: | |
containers: | |
- name: ex-cluster | |
# the same name and tag must be used when building the image | |
image: ex_cluster:local | |
# use Never so the image is grabbed locally, for demo purposes | |
imagePullPolicy: Never | |
env: | |
- name: MY_POD_IP | |
valueFrom: | |
fieldRef: | |
fieldPath: status.podIP | |
- name: NODE_COOKIE | |
value: "cookie" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment