Create a deployment and expose it
Create a deployment named web with 3 replicas using nginx:1.27, then expose it as a ClusterIP service on port 80.
kubectl create deployment web --image=nginx:1.27 --replicas=3
kubectl expose deployment web --port=80 --target-port=80
kubectl get deploy,svc webVerify the selector and endpoint count. A service without matching endpoints usually means the labels do not line up.