Clarify endpoints

This commit is contained in:
Jerome Petazzoni
2018-04-09 10:12:22 -05:00
parent d228222fa6
commit a8378e7e7f

View File

@@ -193,13 +193,32 @@ class: extra-details
- Check the endpoints that Kubernetes has associated with our `elastic` service:
```bash
kubectl get service elastic -o wide
kubectl get endpoints elastic
```
- Compare with the pods for the `elastic` service:
```bash
kubectl get pods -l run=elastic -o wide
kubectl describe service elastic
```
]
In the output, there will be a line starting with `Endpoints:`.
That line will list a bunch of addresses in `host:port` format.
---
class: extra-details
## Viewing endpoint details
- When we have many endpoints, the previous command truncates the list
- If we want to see the full list, we can use one of the following commands:
```bash
kubectl describe endpoint elastic
kubectl get endpoint elastic -o yaml
```
- These addresses will show us a list of IP addresses
- These IP addresses should match the addresses of the corresponding pods:
```bash
kubectl get pods -l run=elastic -o wide
```