integrations/kube-agent-updater/DEBUG.md
Running locally let you attach a debugger while still working against a real cluster. This can be used to reproduce most complex issues and troubleshoot specific cases.
kubectl cluster-info
kubectl proxy
export KUBECONFIG="$(mktemp)"
kubectl config set-credentials myself --username=foo
kubectl config set-cluster local-server --server=http://localhost:8001
kubectl config set-context default-context --cluster=local-server --user=myself
kubectl config use-context default-context
echo "$KUBECONFIG"
KUBECONFIG environment variable set