Skip to content

Instantly share code, notes, and snippets.

@kadel
Last active April 5, 2016 11:50
Show Gist options
  • Select an option

  • Save kadel/93b35f2744d536574455 to your computer and use it in GitHub Desktop.

Select an option

Save kadel/93b35f2744d536574455 to your computer and use it in GitHub Desktop.
openshift List example
{
"kind": "List",
"apiVersion": "v1",
"metadata": {},
"items": [{
"kind": "ReplicationController",
"apiVersion": "v1",
"metadata": {
"name": "nginx-1",
"labels": {
"app": "nginx"
}
},
"spec": {
"replicas": 1,
"selector": {
"app": "nginx"
},
"template": {
"metadata": {
"creationTimestamp": null,
"labels": {
"app": "nginx",
"deployment": "nginx-1",
"deploymentconfig": "nginx"
}
},
"spec": {
"containers": [{
"name": "nginx",
"image": "tomaskral/nonroot-nginx",
"ports": [{
"name": "8080-tcp",
"containerPort": 8080,
"protocol": "TCP"
}]
}]
}
}
}
}, {
"kind": "Service",
"apiVersion": "v1",
"metadata": {
"name": "nginx",
"labels": {
"app": "nginx"
}
},
"spec": {
"ports": [{
"name": "8080-tcp",
"protocol": "TCP",
"port": 8080,
"targetPort": 8080
}],
"selector": {
"app": "nginx",
"deploymentconfig": "nginx"
},
"type": "ClusterIP"
}
}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment