Skip to content

Instantly share code, notes, and snippets.

@chiragtoor
Last active December 7, 2018 23:29
Show Gist options
  • Save chiragtoor/ae42cda2c95924e169838b869092ac52 to your computer and use it in GitHub Desktop.
Save chiragtoor/ae42cda2c95924e169838b869092ac52 to your computer and use it in GitHub Desktop.
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