Don't pass $KUBECONFIG to kubectl --kubeconfig flag
The $KUBECONFIG variable is like $PATH, and supports multiple files separated by `:`, but --kubeconfig only takes a single file as a value. Since kubectl picks up the $KUBECONFIG variable already, don't pass it to kubectl. Also, use --namespace instead of -n to support older kubectl versions.
Loading
Please register or sign in to comment