Tuesday, September 15, 2026

Managing Kubernetes Resources


kubectl: This is the command-line interface for interacting with Kubernetes clusters.


# list running Pods

kubectl get pods


# list running Services

kubectl get services


# list running Deployments

kubectl get deployments


# check the logs of a running Pod

kubectl logs <pod-name>

# To delete a Pod

kubectl delete pod <pod-name>

#The command aims to delete the deployment named nginx-deployment from your Kubernetes cluster, which will also terminate the pods managed by this deployment.

kubectl delete deployment nginx-deployment

# The command aims to provide detailed information about the nginx-deployment, such as its configuration, status, and events related to it.

kubectl describe deployment nginx-deployment

#
kubectl delete all --all

 


No comments:

Post a Comment

Managing Kubernetes Resources

kubectl: This is the command-line interface for interacting with Kubernetes clusters. # list running Pods kubectl get pods # list running Se...