0
0
Kubernetesdevops~10 mins

Endpoints and endpoint slices in Kubernetes - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to list all endpoints in the default namespace.

Kubernetes
kubectl get [1] -n default
Drag options to blanks, or click blank then click option'
Apods
Bservices
Cendpoints
Dnodes
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'pods' instead of 'endpoints' will list pods, not endpoints.
Using 'services' lists services, not their endpoints.
2fill in blank
medium

Complete the command to describe the endpoint slice named 'example-slice' in the 'prod' namespace.

Kubernetes
kubectl describe [1] example-slice -n prod
Drag options to blanks, or click blank then click option'
Aendpoints
Bendpointslices
Cendpointslice
Dendpointslices.k8s.io
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'endpoints' describes endpoints, not endpoint slices.
Using singular 'endpointslice' is invalid resource name.
3fill in blank
hard

Fix the error in the command to get endpoint slices in all namespaces.

Kubernetes
kubectl get [1] --all-namespaces
Drag options to blanks, or click blank then click option'
Aendpointslices
Bendpointslice
Cendpoints
Dendpoint-slices
Attempts:
3 left
💡 Hint
Common Mistakes
Using singular or hyphenated names causes errors.
Using 'endpoints' lists endpoints, not endpoint slices.
4fill in blank
hard

Fill both blanks to create an endpoint slice with the name 'my-slice' in the 'test' namespace.

Kubernetes
kubectl create [1] my-slice -n test --address-type=[2]
Drag options to blanks, or click blank then click option'
Aendpointslice
Bendpointslices
CIPv4
DIPv6
Attempts:
3 left
💡 Hint
Common Mistakes
Using singular 'endpointslice' causes command failure.
Using invalid address types causes errors.
5fill in blank
hard

Fill all three blanks to filter endpoint slices by label 'app=web' and output only their names.

Kubernetes
kubectl get [1] -l [2] -o [3]
Drag options to blanks, or click blank then click option'
Aendpointslices
Bapp=web
Cname
Dnames
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'names' instead of 'name' for output format causes errors.
Using wrong resource names or label selectors returns no results.