Last active
April 16, 2016 22:05
-
-
Save Splaktar/47a76f2dc9e053073e6278bdb5dfec5c to your computer and use it in GitHub Desktop.
Replication Controller config spec for Kubernetes code lab
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": "v1", | |
"kind": "ReplicationController", | |
"metadata": { | |
"name": "hello-node" | |
}, | |
"spec": { | |
"replicas": 2, | |
"selector": { | |
"app":"hello-node" | |
}, | |
"template": { | |
"metadata": { | |
"labels": { | |
"app":"hello-node" | |
} | |
}, | |
"spec": { | |
"containers": [ | |
{ | |
"name": "hello-node", | |
"image": "gcr.io/PROJECT_ID/hello-node:v1", | |
"ports": [ | |
{ | |
"containerPort": 8080, | |
"protocol": "TCP" | |
} | |
], | |
"imagePullPolicy": "IfNotPresent" | |
} | |
], | |
"restartPolicy": "Always", | |
"dnsPolicy": "ClusterFirst" | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment