Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

multiple kubeconfig in one file

export KUBECONFIG=~/.kube/config:/path/to/new/config 
kubectl config view --flatten > /tmp/config

#copy this  file (/tmp/config) to  ~/.kube/config or export it to use
mv /tmp/config ~/.kube/config 
Comment

Merging multiple kube config files in to one

# If you already have multiple config files to connect to different clusters, you would like to merge them first. You can merge both the config file using syntax below

# Merge ~/.kube/config and ~/.kube/devClusterConfig in to new config /tmp/config
$ KUBECONFIG=~/.kube/config:~/.kube/devClusterConfig kubectl config view --flatten > /tmp/config

# Replace old config with new merged config
$ mv /tmp/config ~/.kube/config


#Switching the Kubernetes clusters using kubectl commands
$ kubectl config get-contexts

$ kubectl config use-context qa-aks-cluster
Comment

PREVIOUS NEXT
Code Example
Shell :: how to uninstall program on ubuntu 
Shell :: windows history command 
Shell :: apt list only security updates 
Shell :: windows reverse shell powershell 
Shell :: sbt build command 
Shell :: clear untracked files git 
Shell :: kill force linux 
Shell :: bash remove everything after character x 
Shell :: ubuntu errors were encountered while processing libc-bin 
Shell :: directory current in bash 
Shell :: terminal delete all files that start with 
Shell :: delete git branch from remote 
Shell :: change regolith terminal 
Shell :: chmod x command 
Shell :: get total installed List from ubuntu terminal 
Shell :: ubuntu install composer 
Shell :: refresh gnome shell 
Shell :: kubectl for windows 
Shell :: wsl2 ubuntu 
Shell :: comment in shell script 
Shell :: install brew on mac 
Shell :: remove yarn 0.32+git 
Shell :: docker splunk 
Shell :: install amplify cli on mac 
Shell :: Solve Cannot Install Dependency Error for NPM install 
Shell :: hoe to install LAMP on ubuntu 
Shell :: nohup redirect output 
Shell :: bash 
Shell :: git specify ssh key for repo 
Shell :: git reset head to commit remote 
ADD CONTENT
Topic
Content
Source link
Name
6+8 =