Skip to content

Instantly share code, notes, and snippets.

@nictuku
Created December 24, 2017 01:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nictuku/0ae1e6497356204e8cd9e08da51e67b0 to your computer and use it in GitHub Desktop.
Save nictuku/0ae1e6497356204e8cd9e08da51e67b0 to your computer and use it in GitHub Desktop.
{
"apiVersion": "v1",
"items": [
{
"apiVersion": "extensions/v1beta1",
"kind": "Deployment",
"metadata": {
"name": "service-app-deployment"
},
"spec": {
"replicas": 2,
"template": {
"metadata": {
"labels": {
"app": "service-app"
}
},
"spec": {
"containers": [
{
"image": "gcr.io/deft-cove-184100/service_image:dev",
"imagePullPolicy": "Always",
"name": "service-app",
"ports": [
{
"containerPort": 8080
}
]
}
]
}
}
}
},
{
"apiVersion": "v1",
"kind": "Service",
"metadata": {
"name": "service-svc"
},
"spec": {
"ports": [
{
"port": 80,
"protocol": "TCP",
"targetPort": 8080
}
],
"selector": {
"app": "service-app"
},
"type": "LoadBalancer"
}
}
],
"kind": "List"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment