Update cAdvisor with moved docker root on AWS
We set up a symlink now, and we also pass docker_root into the kubelet. The symlink is probably sufficient, but doing both feels safer.
This commit is contained in:
@@ -31,12 +31,19 @@ grains:
|
||||
EOF
|
||||
|
||||
|
||||
if [[ -n "{DOCKER_OPTS}" ]]; then
|
||||
if [[ -n "${DOCKER_OPTS}" ]]; then
|
||||
cat <<EOF >>/etc/salt/minion.d/grains.conf
|
||||
docker_opts: '$(echo "$DOCKER_OPTS" | sed -e "s/'/''/g")'
|
||||
EOF
|
||||
fi
|
||||
|
||||
if [[ -n "${DOCKER_ROOT}" ]]; then
|
||||
cat <<EOF >>/etc/salt/minion.d/grains.conf
|
||||
docker_root: '$(echo "$DOCKER_ROOT" | sed -e "s/'/''/g")'
|
||||
EOF
|
||||
fi
|
||||
|
||||
|
||||
# Install Salt
|
||||
#
|
||||
# We specify -X to avoid a race condition that can cause minion failure to
|
||||
|
Reference in New Issue
Block a user