mirror of https://github.com/k3s-io/k3s
35 lines
1.2 KiB
Plaintext
Executable File
35 lines
1.2 KiB
Plaintext
Executable File
{
|
|
"kind": "Service",
|
|
"apiVersion": "v1",
|
|
"metadata": {
|
|
"name": "svc1",
|
|
"namespace": "myproject",
|
|
"selfLink": "/api/v1/namespaces/myproject/services/svc1",
|
|
"uid": "d8b96f0b-3d6f-11e7-8ef0-c85b76034b7b",
|
|
"resourceVersion": "3525",
|
|
"creationTimestamp": "2017-05-20T15:20:24Z",
|
|
"labels": {
|
|
"app": "svc1",
|
|
"new-label": "foo"
|
|
},
|
|
"annotations": {
|
|
"kubectl.kubernetes.io/last-applied-configuration": "{\"kind\":\"Service\",\"metadata\":{\"annotations\":{},\"labels\":{\"app\":\"svc1\",\"new-label\":\"foo\"},\"name\":\"svc1\",\"namespace\":\"myproject\"},\"spec\":{\"ports\":[{\"name\":\"80\",\"port\":81,\"protocol\":\"TCP\",\"targetPort\":81}],\"sessionAffinity\":\"None\",\"type\":\"ClusterIP\"},\"status\":{\"loadBalancer\":{}}}\n"
|
|
}
|
|
},
|
|
"spec": {
|
|
"ports": [
|
|
{
|
|
"name": "80",
|
|
"protocol": "TCP",
|
|
"port": 81,
|
|
"targetPort": 81
|
|
}
|
|
],
|
|
"clusterIP": "172.30.32.183",
|
|
"type": "ClusterIP",
|
|
"sessionAffinity": "None"
|
|
},
|
|
"status": {
|
|
"loadBalancer": {}
|
|
}
|
|
} |