Show HN: Kube Namespace – Run Multiple kubectl Commands In The Same Namespace (github.com) 2 points by Noah-Huppert 7y ago ↗ HN
[–] Noah-Huppert 7y ago ↗ I made this tool to solve the problem of being slowed down by having to add the `--namespace` argument to every single `kubectl` command invocation: # Before kubectl --namespace foo-bar get pods kubectl --namespace foo-bar describe pod/bazz kubectl --namespace foo-bar exec bazz # After kubens use foo-bar kubectl get pods kubectl describe pod/bazz kubectl exec bazz I hope this helps others who have encountered the same issue.
[–] imauld 7y ago ↗ This is a built in feature of `kubectl`: kubectl config set-context your-context --namespace some-namespace
2 comments
[ 3.5 ms ] story [ 19.1 ms ] thread