Clarify endpoints

This commit is contained in:
Bridget Kromhout
2018-04-10 15:07:42 -05:00
parent f741cf5b23
commit af1347ca17

View File

@@ -213,12 +213,15 @@ class: extra-details
## Viewing endpoint details
- When we have many endpoints, the previous command truncates the list
- When we have many endpoints, our display commands truncate the list
```bash
kubectl get endpoints
```
- 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
kubectl describe endpoints elastic
kubectl get endpoints elastic -o yaml
```
- These addresses will show us a list of IP addresses
@@ -227,3 +230,23 @@ class: extra-details
```bash
kubectl get pods -l run=elastic -o wide
```
---
class: extra-details
## endpoints not endpoint
- `endpoints` is the only resource that cannot be singular
```bash
kubectl get endpoint
kubectl describe endpoint
```
--
.warning[error: the server doesn't have a resource type "endpoint"]
- This is because the type itself is plural (unlike every other resource)
- There is no `endpoint` object: `type Endpoints struct`