FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
kubectl context like a pro
How-ToTools

kubectl context like a pro

via Dev.to Tutorialdejanualex4h ago

If your work involves working with multiple Kubernetes clusters, then this might be for you. ☸️ A file that is used to configure access to a cluster is called kubeconfig (usually placed at ~/.kube/config ), but you can easily override the location by using --kubeconfig=<path_to_config> flag or using KUBECONFIG environment variable export KUBECONFIG=<path/to/your_kubeconfig> . A Kubernetes config file describes clusters , users , and contexts . You can use multiple contexts to target different Kubernetes clusters. apiVersion : v1 kind : Config preferences : {} clusters : - cluster : name : <cluster_name> ... users : - name : <user_name> ... contexts : - context : name : <context_name> You can render your current config: kubectl config view . Without further ado, let's take the example of merging two config files(one for each cluster): # create backup for current config cp ~/.kube/config ~/.kube/config.bak # merge the 2 configs KUBECONFIG = ~/.kube/config:/path/to/new/config kubectl conf

Continue reading on Dev.to Tutorial

Opens in a new tab

Read Full Article
0 views

Related Articles

Stop paying for cable: How to access over 1,000 free streaming channels today
How-To

Stop paying for cable: How to access over 1,000 free streaming channels today

ZDNet • 1h ago

How I Taught Agents to Follow a Process (Not Just Write Code)
How-To

How I Taught Agents to Follow a Process (Not Just Write Code)

Medium Programming • 1h ago

The kid-friendly Fitbit Ace is $100, which matches its best price
How-To

The kid-friendly Fitbit Ace is $100, which matches its best price

The Verge • 4h ago

Your iPhone has a secret button on the back - here's how to unlock it
How-To

Your iPhone has a secret button on the back - here's how to unlock it

ZDNet • 7h ago

Best Laptops for Multi-Monitor Setups in 2026
How-To

Best Laptops for Multi-Monitor Setups in 2026

Medium Programming • 8h ago

Discover More Articles