mirror of
https://github.com/jpetazzo/container.training.git
synced 2026-07-18 12:29:18 +00:00
Clarify endpoints
This commit is contained in:
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user