Update kubectlexpose.md

This commit is contained in:
Jérôme Petazzoni
2018-04-12 00:37:18 -05:00
committed by GitHub
parent af1347ca17
commit 5ef96a29ac

View File

@@ -235,18 +235,17 @@ class: extra-details
class: extra-details
## endpoints not endpoint
## `endpoints` not `endpoint`
- `endpoints` is the only resource that cannot be singular
```bash
kubectl get endpoint
kubectl describe endpoint
$ kubectl get endpoint
error: the server doesn't have a resource type "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`
- The type doesn't represent a single endpoint, but a list of endpoints