Skip to content

Instantly share code, notes, and snippets.

@dileeph
Last active January 5, 2016 00:03
Show Gist options
  • Save dileeph/456755d11c1c6d6f0a56 to your computer and use it in GitHub Desktop.
Save dileeph/456755d11c1c6d6f0a56 to your computer and use it in GitHub Desktop.
kubernetes-json-files
{
"kind": "ReplicationController",
"apiVersion": "v1",
"metadata": {
"name": "claims-web-controller",
"labels": {
"state": "serving"
}
},
"spec": {
"replicas": 1,
"selector": {
"app": "claims-web"
},
"template": {
"metadata": {
"labels": {
"app": "claims-web"
}
},
"spec": {
"volumes": null,
"containers": [
{
"name": "claims-web",
"image": "b.gcr.io/incat-wkb-1/claims-web:jenkins-claims-web-docker-3",
"env": [
{
"name": "CONNECTION_REMOTE_ADDRESS",
"value": "CLAIMS_SERVICE_SERVICE_HOST"
},
{
"name": "CONNECTION_PORT",
"value": "CLAIMS_SERVICE_SERVICE_PORT"
}
],
"ports": [
{
"containerPort": 8080,
"protocol": "TCP"
}
],
"imagePullPolicy": "IfNotPresent"
}
],
"restartPolicy": "Always",
"dnsPolicy": "ClusterFirst"
}
}
}
}
{
"kind": "ReplicationController",
"apiVersion": "v1",
"metadata": {
"name": "claims-service-controller",
"labels": {
"state": "serving"
}
},
"spec": {
"replicas": 1,
"selector": {
"app": "claims-service"
},
"template": {
"metadata": {
"labels": {
"app": "claims-service"
}
},
"spec": {
"volumes": null,
"containers": [
{
"name": "claims-service",
"image": "b.gcr.io/incat-wkb-1/claims-service:jenkins-claims-service-docker-24",
"env": [
],
"ports": [
{
"containerPort": 8080,
"protocol": "TCP"
}
],
"imagePullPolicy": "IfNotPresent"
}
],
"restartPolicy": "Always",
"dnsPolicy": "ClusterFirst"
}
}
}
}
{
"kind": "Service",
"apiVersion": "v1",
"metadata": {
"name": "claims-web-service"
},
"spec": {
"type": "LoadBalancer",
"selector": {
"app": "claims-web"
},
"ports": [
{
"protocol": "TCP",
"port": 80,
"targetPort": 8080
}
]
}
}
{
"kind": "Service",
"apiVersion": "v1",
"metadata": {
"name": "claims-service-service"
},
"spec": {
"selector": {
"app": "claims-service"
},
"ports": [
{
"protocol": "TCP",
"port": 80,
"targetPort": 8080
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment