Solution Services
- How many services exist on the system? Can check with:
kubectl get service / kubectl get svc - Can observe the
TYPE(usuallyClusterIP) - To find the
Target Port,Labels,Endpointsusekubectl describe services. - When we create a pod, it is assigned a label.
- To create a service and direct traffic to the pods, the same labels as on the pods have traffic sent to them.
- The
kubectl describe servicescommand can show 4 endpoints.- If
Endpointsis zero on theservice, that means the service has not found any pods.
- If
- The
- To create a service and direct traffic to the pods, the same labels as on the pods have traffic sent to them.
- How many deployments exist in the system in the current namespace?
kubectl get deployments
- What is the image being used in the
deployment?kubectl describe deploy <deployment_name>