...
1{
2 "kind": "Service",
3 "apiVersion": "v1",
4 "metadata": {
5 "name": "svc1",
6 "namespace": "myproject",
7 "selfLink": "/api/v1/namespaces/myproject/services/svc1",
8 "uid": "d8b96f0b-3d6f-11e7-8ef0-c85b76034b7b",
9 "resourceVersion": "3555",
10 "creationTimestamp": "2017-05-20T15:20:24Z",
11 "labels": {
12 "app": "svc1",
13 "new-label": "foo"
14 },
15 "annotations": {
16 "kubectl.kubernetes.io/last-applied-configuration": "{\"apiVersion\":\"v1\",\"kind\":\"Service\",\"metadata\":{\"annotations\":{},\"labels\":{\"app\":\"svc1\",\"new-label\":\"foo\",\"new-label2\":\"foo2\"},\"name\":\"svc1\",\"namespace\":\"myproject\"},\"spec\":{\"ports\":[{\"name\":\"80\",\"port\":82,\"protocol\":\"TCP\",\"targetPort\":81}],\"sessionAffinity\":\"None\",\"type\":\"ClusterIP\"},\"status\":{\"loadBalancer\":{}}}\n"
17 }
18 },
19 "spec": {
20 "ports": [
21 {
22 "name": "80",
23 "protocol": "TCP",
24 "port": 81,
25 "targetPort": 81
26 }
27 ],
28 "clusterIP": "172.30.32.183",
29 "type": "ClusterIP",
30 "sessionAffinity": "None"
31 },
32 "status": {
33 "loadBalancer": {}
34 }
35}
View as plain text