AWS: Move /var/lib/kubelet to /mnt

The backing for empty-dir volumes otherwise consumes all our disk space
pull/6/head
Justin Santa Barbara 2015-04-17 06:46:08 -07:00
parent 0232888a4b
commit b2bce12b6c
1 changed files with 8 additions and 0 deletions

View File

@ -67,5 +67,13 @@ else
ln -s /mnt/docker /var/lib/docker
DOCKER_ROOT="/mnt/docker"
DOCKER_OPTS="${DOCKER_OPTS} -g /mnt/docker"
# Move /var/lib/kubelet to /mnt if we have it
# (the backing for empty-dir volumes can use a lot of space!)
if [[ -d /var/lib/kubelet ]]; then
mv /var/lib/kubelet /mnt/
fi
mkdir -p /mnt/kubelet
ln -s /mnt/kubelet /var/lib/kubelet
fi