Disallow local loopback for volume hosts

Change-Id: Ic356c3f859057153cfad97327f1938792a1a512c
This commit is contained in:
Matthew Cary 2021-01-11 15:17:25 -08:00
parent 4fc184f383
commit 9a7dcd36c1

View File

@ -1999,6 +1999,7 @@ function start-kube-controller-manager {
params+=("--kubeconfig=${config_path}" "--authentication-kubeconfig=${config_path}" "--authorization-kubeconfig=${config_path}")
params+=("--root-ca-file=${CA_CERT_BUNDLE_PATH}")
params+=("--service-account-private-key-file=${SERVICEACCOUNT_KEY_PATH}")
params+=("--volume-host-allow-local-loopback=false")
if [[ -n "${ENABLE_GARBAGE_COLLECTOR:-}" ]]; then
params+=("--enable-garbage-collector=${ENABLE_GARBAGE_COLLECTOR}")
fi