kubectl Authentication Made Simple
While working on a continuous delivery pipeline to automate deployment to Google Container Engine (GKE), I found that getting kubectl to work is very complexandconvoluted, especially when it needs to be noninteractive. So I want to find out the easiest way to get kubectl working noninteractively.
Assuming that gcloud and kubectl are already installed but not necessarily setup, ONLY two commands are needed to get kubectl working noninteractively (verified with Google Cloud SDK 141.0.0 and kubectl 1.5.2)