kubectl get svc code example
Example: kubernetes get services
# Get pods in default namespace
kubectl get services
#Get Pods in my-namespace
kubectl get services -n my-namespace
#Get Pods in all namespaces
kubectl get services --all-namespaces
# Get pods in default namespace
kubectl get services
#Get Pods in my-namespace
kubectl get services -n my-namespace
#Get Pods in all namespaces
kubectl get services --all-namespaces