mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 09:22:44 +00:00
mount kubelet root directory as executable in GCI
Signed-off-by: Vishnu kannan <vishnuk@google.com>
This commit is contained in:
parent
cf8fcd03f0
commit
504cf5ca3c
@ -1120,6 +1120,13 @@ function start-rescheduler {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Setup working directory for kubelet.
|
||||||
|
function setup-kubelet-dir {
|
||||||
|
echo "Making /var/lib/kubelet executable for kubelet"
|
||||||
|
mount --bind /var/lib/kubelet /var/lib/kubelet/
|
||||||
|
mount -B -o remount,exec,suid,dev /var/lib/kubelet
|
||||||
|
}
|
||||||
|
|
||||||
function reset-motd {
|
function reset-motd {
|
||||||
# kubelet is installed both on the master and nodes, and the version is easy to parse (unlike kubectl)
|
# kubelet is installed both on the master and nodes, and the version is easy to parse (unlike kubectl)
|
||||||
local -r version="$("${KUBE_HOME}"/bin/kubelet --version=true | cut -f2 -d " ")"
|
local -r version="$("${KUBE_HOME}"/bin/kubelet --version=true | cut -f2 -d " ")"
|
||||||
@ -1177,6 +1184,7 @@ fi
|
|||||||
|
|
||||||
config-ip-firewall
|
config-ip-firewall
|
||||||
create-dirs
|
create-dirs
|
||||||
|
setup-kubelet-dir
|
||||||
ensure-local-ssds
|
ensure-local-ssds
|
||||||
setup-logrotate
|
setup-logrotate
|
||||||
if [[ "${KUBERNETES_MASTER:-}" == "true" ]]; then
|
if [[ "${KUBERNETES_MASTER:-}" == "true" ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user