Skip to content

Instantly share code, notes, and snippets.

@dipak-pawar
Created February 28, 2017 08:51
Show Gist options
  • Save dipak-pawar/ed9c7f03122118bdfdf6f8b4ba9bacdd to your computer and use it in GitHub Desktop.
Save dipak-pawar/ed9c7f03122118bdfdf6f8b4ba9bacdd to your computer and use it in GitHub Desktop.
{
"apiVersion" : "v1",
"kind" : "List",
"items" : [ {
"apiVersion" : "v1",
"kind" : "Service",
"metadata" : {
"name" : "hello-world-service"
},
"spec" : {
"ports" : [ {
"port" : 80,
"protocol" : "TCP",
"targetPort" : 80
} ],
"selector" : {
"app" : "hello-world"
}
}
}, {
"apiVersion" : "v1",
"kind" : "ReplicationController",
"metadata" : {
"name" : "hello-world-controller"
},
"spec" : {
"replicas" : 1,
"selector" : {
"app" : "hello-world"
},
"template" : {
"metadata" : {
"labels" : {
"app" : "hello-world"
}
},
"spec" : {
"containers" : [ {
"image" : "dockercloud/hello-world",
"name" : "hello-world-container",
"ports" : [ {
"name" : "http",
"protocol" : "TCP",
"containerPort" : 80
} ]
} ]
}
}
}
}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment