...
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": "bc66b442-3d6a-11e7-8ef0-c85b76034b7b",
9 "resourceVersion": "3036",
10 "creationTimestamp": "2017-05-20T14:43:49Z",
11 "labels": {
12 "app": "svc1",
13 "new-label": "new-value"
14 },
15 "annotations": {
16 "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"
17 }
18 },
19 "spec": {
20 "ports": [
21 {
22 "name": "80",
23 "protocol": "TCP",
24 "port": 81,
25 "targetPort": 80
26 }
27 ],
28 "selector": {
29 "app": "svc1"
30 },
31 "clusterIP": "172.30.136.24",
32 "type": "ClusterIP",
33 "sessionAffinity": "None"
34 },
35 "status": {
36 "loadBalancer": {}
37 }
38}
View as plain text