Customize Consent Preferences

We use cookies to help you navigate efficiently and perform certain functions. You will find detailed information about all cookies under each consent category below.

The cookies that are categorized as "Necessary" are stored on your browser as they are essential for enabling the basic functionalities of the site. ... 

Always Active

Necessary cookies are required to enable the basic features of this site, such as providing secure log-in or adjusting your consent preferences. These cookies do not store any personally identifiable data.

Functional cookies help perform certain functionalities like sharing the content of the website on social media platforms, collecting feedback, and other third-party features.

Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics such as the number of visitors, bounce rate, traffic source, etc.

Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.

Advertisement cookies are used to provide visitors with customized advertisements based on the pages you visited previously and to analyze the effectiveness of the ad campaigns.

Bal Raksha Bharat is registered under sections 12A & 80G of the Income Tax Act, 1961 and CSR-1 registered under the Ministry of Corporate Affairs for undertaking CSR activities. click here to visit all certificates

whatsapp icon

Kubectl Config File [2021] [ Works 100% ]

Open ~/.kube/config in a text editor and change the line current-context: dev-context to current-context: prod-context .

--raw to see secrets/certs) List all contexts kubectl config get-contexts Show current context kubectl config current-context Switch context kubectl config use-context Add/Modify a cluster kubectl config set-cluster --server= Add/Modify credentials kubectl config set-credentials --token= Delete an entry kubectl config delete-context Advanced Usage: Merging and Automating In-Memory Merging kubectl config file

Let’s look at a real-world example (with sensitive data redacted): Open ~/

Have a kubeconfig horror story or a neat trick? Share it in the comments below! kubectl config file