This plugin will allow you to change the default namespace in the current context in the kubeconfig file.
kubectl v1.12.0 or later
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
Go to realease page and download the
filekubectl-kubeconfig-plugins_darwin_amd64.tar
extract it and move them to a folder in your path.
kubectl set-namespace myapp
Changes the current context's default namespace to myapp
kubectl aws-update-kubeconfig
Update kubeconfig file with the clusters information from AWS
Note: This command requires aws-cli installed and configured to work