Skip to content

Instantly share code, notes, and snippets.

@Splaktar
Last active April 16, 2016 22:05
Show Gist options
  • Save Splaktar/47a76f2dc9e053073e6278bdb5dfec5c to your computer and use it in GitHub Desktop.
Save Splaktar/47a76f2dc9e053073e6278bdb5dfec5c to your computer and use it in GitHub Desktop.
Replication Controller config spec for Kubernetes code lab
{
"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