All Projects → xetys → kubeconfig-loader

xetys / kubeconfig-loader

Licence: other
A simple bash script for rotating local kubeconfigs

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to kubeconfig-loader

kconnect
Kubernetes Connection Manager CLI
Stars: ✭ 168 (+740%)
Mutual labels:  kubectl, kubeconfig
ki
Manage multiple kubeconfigs easily
Stars: ✭ 34 (+70%)
Mutual labels:  kubectl, kubeconfig
kubernetes-hands-on
Kubernetes Hands-on by Algolia
Stars: ✭ 109 (+445%)
Mutual labels:  kubectl
kubectl-ssh-plugin-eks
This is plugin to SSH into Worker Nodes running on AWS
Stars: ✭ 18 (-10%)
Mutual labels:  kubectl
kubelogs
Interactively dump logs from multiple Kubernetes containers.
Stars: ✭ 15 (-25%)
Mutual labels:  kubectl
kubectl-ns
Simple kubectl plugin to display/switch namespaces
Stars: ✭ 20 (+0%)
Mutual labels:  kubectl
kahoy
Simple Kubernetes raw manifests deployment tool
Stars: ✭ 33 (+65%)
Mutual labels:  kubectl
rbac-tool
Rapid7 | insightCloudSec | Kubernetes RBAC Power Toys - Visualize, Analyze, Generate & Query
Stars: ✭ 546 (+2630%)
Mutual labels:  kubectl
kubectl-secretdata
A kubectl plugin for viewing decoded Secret data with search flags.
Stars: ✭ 37 (+85%)
Mutual labels:  kubectl
kubecolor
colorizes kubectl output
Stars: ✭ 975 (+4775%)
Mutual labels:  kubectl
kubectl-janitor
List Kubernetes objects in a problematic state
Stars: ✭ 48 (+140%)
Mutual labels:  kubectl
kubectl-whoami
This plugin gets the subject name using the effective kubeconfig
Stars: ✭ 74 (+270%)
Mutual labels:  kubectl
gcloud-kubectl-helm
Docker image for the quaternity of gcloud, helm, kubectl and SOPS
Stars: ✭ 32 (+60%)
Mutual labels:  kubectl
gitops-kubernetes-cluster
A quick way to build a cluster with ArgoCD then deploy via Applications
Stars: ✭ 34 (+70%)
Mutual labels:  kubectl
kubeswitch
The kubectx for operators.
Stars: ✭ 473 (+2265%)
Mutual labels:  kubeconfig
aksctl
An easy to use CLI for AKS cluster
Stars: ✭ 46 (+130%)
Mutual labels:  kubectl
kubectl-df-pv
kubectl plugin - giving admins df (disk free) like utility for persistent volumes
Stars: ✭ 256 (+1180%)
Mutual labels:  kubectl
k8s-deployer
Deploy Kubernetes service and store retrieved information in the Consul K/V store
Stars: ✭ 23 (+15%)
Mutual labels:  kubectl
kubectlsafe
Safe operations in kubectl with plugin kubectlsafe
Stars: ✭ 36 (+80%)
Mutual labels:  kubectl
kube-lineage
A CLI tool to display all dependencies or dependents of an object in a Kubernetes cluster.
Stars: ✭ 238 (+1090%)
Mutual labels:  kubectl

Simple kubeconfig switcher

Why do I did this project?

I know there is the cool way of dealing with multiple k8s clusters, by merging the different kube-configs in ~/.kube/config and use kubectl config use-context to switch them. Currently I'm setting up a lot of clusters, with their own kubeconfigs, and I'm getting tired of all that merging.

Actually, life can be simpler just by rotating that configs around. So I spent that 10 minutes of bashing that project to make my (and maybe your) life easier.

How to install?

  • clone that project
  • put it into a folder behind your $PATH, like /usr/bin, /usr/local/bin or what ever you want
  • you are done...it's simple bash, and does not depend on any lib

How to use?

whenever a wild kubeconfig appears, add it with

$ kubeconfig-loader add my-new-cluster /path/to/new/kubeconfig/file

proof you have my-new-cluster available with

$ kubeconfig-loader ls

switch to that cluster by

$ kubeconfig-loader use my-new-cluster

and check it works with

$ kubectl get node

or any other kubectl related command

happy kubing

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].