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>
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
# 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