mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 01:06:27 +00:00
enable token auth for kubelets in GCE
This commit is contained in:
parent
666b6b9e85
commit
23d02c8f07
@ -571,8 +571,11 @@ function construct-kubelet-flags {
|
|||||||
[[ "${HAIRPIN_MODE:-}" == "none" ]]; then
|
[[ "${HAIRPIN_MODE:-}" == "none" ]]; then
|
||||||
flags+=" --hairpin-mode=${HAIRPIN_MODE}"
|
flags+=" --hairpin-mode=${HAIRPIN_MODE}"
|
||||||
fi
|
fi
|
||||||
|
flags+=" --anonymous-auth=false"
|
||||||
|
flags+=" --authentication-token-webhook"
|
||||||
|
flags+=" --authorization-mode=Webhook"
|
||||||
# Keep client-ca-file in sync with CA_CERT_BUNDLE_PATH in configure-helper.sh
|
# Keep client-ca-file in sync with CA_CERT_BUNDLE_PATH in configure-helper.sh
|
||||||
flags+=" --anonymous-auth=false --authorization-mode=Webhook --client-ca-file=/etc/srv/kubernetes/pki/ca-certificates.crt"
|
flags+=" --client-ca-file=/etc/srv/kubernetes/pki/ca-certificates.crt"
|
||||||
fi
|
fi
|
||||||
# Network plugin
|
# Network plugin
|
||||||
if [[ -n "${NETWORK_PROVIDER:-}" || -n "${NETWORK_POLICY_PROVIDER:-}" ]]; then
|
if [[ -n "${NETWORK_PROVIDER:-}" || -n "${NETWORK_POLICY_PROVIDER:-}" ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user