Difference between revisions of "Kubernetes EndPoints"
Jump to navigation
Jump to search
(32 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{Draft}} | {{Draft}} | ||
+ | [[Kubernetes EndPoints]] and [[Kubernetes EndpointSlices]] | ||
+ | |||
+ | [[kind: Endpoints]] | ||
+ | |||
+ | [[endpoints.kubernetes.io/last-change-trigger-time]] | ||
[[kubectl -n kube-system]] get [[endpoints]] kube-dns | [[kubectl -n kube-system]] get [[endpoints]] kube-dns | ||
Line 5: | Line 10: | ||
kube-dns <none> 3h55m | kube-dns <none> 3h55m | ||
+ | kubectl get endpoints -n your-app-wrongns | ||
+ | No resources found in your-app-wrongns namespace. | ||
+ | |||
+ | { | ||
+ | "kind": "Status", | ||
+ | "apiVersion": "v1", | ||
+ | "metadata": { | ||
+ | |||
+ | }, | ||
+ | "status": "Failure", | ||
+ | "message": "[[no endpoints available for service]] \"[[kubernetes-dashboard]]\"", | ||
+ | "reason": "[[ServiceUnavailable]]", | ||
+ | "code": 503 | ||
+ | } | ||
+ | |||
+ | [[kubectl describe endpoints]] | ||
== Changelog == | == Changelog == | ||
+ | * [[CKA v1.23]] [[CKA v1.24]] [[Understand ClusterIP, NodePort, LoadBalancer service types and endpoints]] | ||
* [[v1.18]] <code>AppProtocol</code> is a new optional field on ports in Endpoints and [[Kubernetes services|Services]] | * [[v1.18]] <code>AppProtocol</code> is a new optional field on ports in Endpoints and [[Kubernetes services|Services]] | ||
* New [[EndpointSlice]] [[Kubernetes API|API]] | * New [[EndpointSlice]] [[Kubernetes API|API]] | ||
+ | == Errors == | ||
+ | [[W0215]] 21:18:47.086332 1 [[controller.go]]:2903] [[Error retrieving endpoints for the service]] yourapp-app-helm: [[no endpointslices for target port]] 80 in service yourapp-app-helm | ||
+ | |||
+ | == Activities == | ||
+ | * Read [[Kubernetes Concept: Endpoints vs EndpointSlices]] https://www.linkedin.com/pulse/kubernetes-concept-endpoints-vs-endpointslices-mbong-ekwoge | ||
== Related == | == Related == | ||
* <code>[[kubectl get pod]]</code> | * <code>[[kubectl get pod]]</code> | ||
+ | * <code>[[kubectl get endpoints]]</code> | ||
+ | * <code>[[K8s EndpointSlices|EndpointSlices]]</code> | ||
+ | * [[CKA 1.23]] Understand [[ClusterIP]], [[NodePort]], [[LoadBalancer]] service types and [[endpoints]] | ||
+ | * [[Felix]] [[Calico]] component | ||
+ | * [[Endpoints controller]] | ||
+ | * [[Kubernetes EndpointSlices]] | ||
+ | * [[Kubernetes services]]: <code>[[kind: Service]]</code> | ||
+ | * [[Kubernetes Ingress]] | ||
== See also == | == See also == | ||
− | * {{ | + | * {{Kubernetes services}} |
− | * {{ | + | * {{EndPoints}} |
− | |||
[[Category:Kubernetes]] | [[Category:Kubernetes]] |
Latest revision as of 06:42, 16 February 2024
This article is a Draft. Help us to complete it.
Kubernetes EndPoints and Kubernetes EndpointSlices
kind: Endpoints
endpoints.kubernetes.io/last-change-trigger-time
kubectl -n kube-system get endpoints kube-dns NAME ENDPOINTS AGE kube-dns <none> 3h55m
kubectl get endpoints -n your-app-wrongns No resources found in your-app-wrongns namespace.
{ "kind": "Status", "apiVersion": "v1", "metadata": { }, "status": "Failure", "message": "no endpoints available for service \"kubernetes-dashboard\"", "reason": "ServiceUnavailable", "code": 503 }
kubectl describe endpoints
Contents
Changelog[edit]
- CKA v1.23 CKA v1.24 Understand ClusterIP, NodePort, LoadBalancer service types and endpoints
- v1.18
AppProtocol
is a new optional field on ports in Endpoints and Services - New EndpointSlice API
Errors[edit]
W0215 21:18:47.086332 1 controller.go:2903] Error retrieving endpoints for the service yourapp-app-helm: no endpointslices for target port 80 in service yourapp-app-helm
Activities[edit]
- Read Kubernetes Concept: Endpoints vs EndpointSlices https://www.linkedin.com/pulse/kubernetes-concept-endpoints-vs-endpointslices-mbong-ekwoge
Related[edit]
kubectl get pod
kubectl get endpoints
EndpointSlices
- CKA 1.23 Understand ClusterIP, NodePort, LoadBalancer service types and endpoints
- Felix Calico component
- Endpoints controller
- Kubernetes EndpointSlices
- Kubernetes services:
kind: Service
- Kubernetes Ingress
See also[edit]
- Kubernetes services,
kubectl get services, kubectl describe service
,kubectl create service
[loadbalancer
|nodeport
|clusterip
|externalname ], kubectl expose
,headless service, service.beta.kubernetes.io
- Kubernetes EndPoints, EndpointSlices,
kubectl get endpoints, FailedToUpdateEndpoint, kind: Endpoints
Advertising: