From af1347ca172e42355ab271539197df21eae0fdfe Mon Sep 17 00:00:00 2001 From: Bridget Kromhout Date: Tue, 10 Apr 2018 15:07:42 -0500 Subject: [PATCH] Clarify endpoints --- slides/kube/kubectlexpose.md | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/slides/kube/kubectlexpose.md b/slides/kube/kubectlexpose.md index a18d8ef4..dc1f2f95 100644 --- a/slides/kube/kubectlexpose.md +++ b/slides/kube/kubectlexpose.md @@ -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`