kubernetes delete service code example
Example 1: kubectl delete all pods
kubectl delete --all pods
Example 2: how to delete services in kubernetes
kubectl delete services yourServiceNameHere
Example 3: 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