| { |
| "kind": "Service", |
| "apiVersion": "v1", |
| "metadata": { |
| "name": "svc1", |
| "namespace": "myproject", |
| "selfLink": "/api/v1/namespaces/myproject/services/svc1", |
| "uid": "bc66b442-3d6a-11e7-8ef0-c85b76034b7b", |
| "resourceVersion": "3036", |
| "creationTimestamp": "2017-05-20T14:43:49Z", |
| "labels": { |
| "app": "svc1", |
| "new-label": "new-value" |
| }, |
| "annotations": { |
| "kubectl.kubernetes.io/last-applied-configuration": "{\"apiVersion\":\"v1\",\"kind\":\"Service\",\"metadata\":{\"annotations\":{},\"creationTimestamp\":\"2017-02-01T21:14:09Z\",\"labels\":{\"app\":\"svc1\",\"new-label\":\"new-value\"},\"name\":\"svc1\",\"namespace\":\"myproject\",\"resourceVersion\":\"20820\"},\"spec\":{\"ports\":[{\"name\":\"80\",\"port\":81,\"protocol\":\"TCP\",\"targetPort\":80}],\"selector\":{\"app\":\"svc1\"},\"sessionAffinity\":\"None\",\"type\":\"ClusterIP\"},\"status\":{\"loadBalancer\":{}}}\n" |
| } |
| }, |
| "spec": { |
| "ports": [ |
| { |
| "name": "80", |
| "protocol": "TCP", |
| "port": 81, |
| "targetPort": 80 |
| } |
| ], |
| "selector": { |
| "app": "svc1" |
| }, |
| "clusterIP": "172.30.136.24", |
| "type": "ClusterIP", |
| "sessionAffinity": "None" |
| }, |
| "status": { |
| "loadBalancer": {} |
| } |
| } |