Skip to content

FrankFuenmayor/kubectl-kubeconfig-plugins

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kubectl set-namespace plugin

This plugin will allow you to change the default namespace in the current context in the kubeconfig file.

Requirements

kubectl v1.12.0 or later

Installing on macOS

 curl -L https://github.com/FrankFuenmayor/kubectl-kubeconfig-plugins/releases/download/0.0.1/kubectl-kubeconfig-plugins_darwin_amd64.tar | tar xvz && mv kubectl-* /usr/local/bin

Download

Go to realease page and download the filekubectl-kubeconfig-plugins_darwin_amd64.tar extract it and move them to a folder in your path.

Available plugins

set-namespace

kubectl set-namespace myapp

Changes the current context's default namespace to myapp

aws-update-kubeconfig

kubectl aws-update-kubeconfig

Update kubeconfig file with the clusters information from AWS

Note: This command requires aws-cli installed and configured to work