Complete the code to list all endpoints in the default namespace.
kubectl get [1] -n defaultThe kubectl get endpoints command lists all endpoints in the specified namespace.
Complete the command to describe the endpoint slice named 'example-slice' in the 'prod' namespace.
kubectl describe [1] example-slice -n prodThe resource name for endpoint slices is endpointslices. This command shows detailed info about the slice.
Fix the error in the command to get endpoint slices in all namespaces.
kubectl get [1] --all-namespacesThe correct resource name is endpointslices (plural, no hyphen). This lists all endpoint slices across namespaces.
Fill both blanks to create an endpoint slice with the name 'my-slice' in the 'test' namespace.
kubectl create [1] my-slice -n test --address-type=[2]
Use endpointslices to create the resource. The address type IPv4 specifies the IP version for the slice.
Fill all three blanks to filter endpoint slices by label 'app=web' and output only their names.
kubectl get [1] -l [2] -o [3]
Use endpointslices as the resource, filter with label app=web, and output only the name field.