Important kubectl commands in our daily life

Below are a few Kubernetes commands that are useful in our day-to-day activities
A lot of times we are often confused with a few commands which we use daily with kubectl commands.

1. To get Kubernetes contexts added in .kubeconfig/config file
   kubectl config get-contexts
2. To the context from the availine list by using the above command
   kubectl config use-context <kubernetes context name>
3. To get current Kubernetes Pods in a specific namespace
   kubectl get pods -n <namespace>
4. To get current Kubernetes secrets in a specific namespace
   kubectl get secrets -n <namespace>

0 Shares:
Leave a Reply

Your email address will not be published. Required fields are marked *

You May Also Like