The Authorization token is stored in /var/run/secrets/kubernetes.io/serviceaccount/token. With this the master api can be accessed. The url of the master api is present in the environment variables KUBERNETES_SERVICE_HOST and KUBERNETES_PORT_443_TCP_PORT.
This will probably break local development though.
The Authorization token is stored in
/var/run/secrets/kubernetes.io/serviceaccount/token
. With this the master api can be accessed. The url of the master api is present in the environment variablesKUBERNETES_SERVICE_HOST
andKUBERNETES_PORT_443_TCP_PORT
.This will probably break local development though.