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