root@master:/home/ecoto# kubectl -n kube-system exec cilium-jncn0 -- cilium service list --jsonpath '{[*].FrontendAddress}'
10.96.0.1:443 10.96.0.10:53```
```
```
root@master:/home/ecoto# kubectl -n kube-system exec cilium-jncn0 -- cilium service list --json
[{"ID":1,"FrontendAddress":"10.96.0.1:443","BackendAddresses":["1 =\u003e 172.16.0.2:6443"]},{"ID":2,"FrontendAddress":"10.96.0.10:53","BackendAddresses":["1 =\u003e 10.2.42.252:53"]}]
```
Last active
September 7, 2017 10:51
-
-
Save eloycoto/200b56bf9f3dce48d5ff6b3d69ff0ec4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@master:/home/ubuntu/scripts# kubectl -n kube-system exec -ti cilium-f9krl -- cilium identity list --reserved | |
Reserved identities: | |
1 host | |
2 world | |
Identities in use by endpoints: | |
(Note: If labels have been provided as parameters, only matching identities will be displayed) | |
{ | |
"Payload": [ | |
{ | |
"id": 256, | |
"labels": [ | |
"k8s:io.kubernetes.pod.namespace=kube-system", | |
"k8s:k8s-app=kube-dns" | |
] | |
}, | |
{ | |
"id": 257, | |
"labels": [ | |
"k8s:io.kubernetes.pod.namespace=default", | |
"k8s:id=app1" | |
] | |
}, | |
{ | |
"id": 258, | |
"labels": [ | |
"k8s:id=app2", | |
"k8s:io.kubernetes.pod.namespace=default" | |
] | |
}, | |
{ | |
"id": 259, | |
"labels": [ | |
"k8s:id=app3", | |
"k8s:io.kubernetes.pod.namespace=default" | |
] | |
} | |
] | |
} | |
root@master:/home/ubuntu/scripts# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment