- Take me to Practice Test
Solutions to practice test for namespaces
-
Run the command
kubectl get namespace
and count the number of pods.$ kubectl get namespace
-
Run the command
kubectl get pods --namespace=research
$ kubectl get pods --namespace=research
-
Run the below command
$ kubectl run redis --image=redis --namespace=finance
-
Run the command
kubectl get pods --all-namespaces
$ kubectl get pods --all-namespaces
-
Connectivity Test
Host Name: db-service and Host Port: 3306
-
Connectivity Test
Host Name: db-service.dev.svc.cluster.local and Host Port: 3306