Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

Commit

Permalink
increase tolerance to 95% disk full, exit if error
Browse files Browse the repository at this point in the history
  • Loading branch information
jackfrancis committed Feb 10, 2021
1 parent 1c213ab commit a90360b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions parts/k8s/cloud-init/artifacts/cse_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,8 @@ pullContainerImage() {
retrycmd 60 1 1200 $cli_tool pull $url || exit 35
}
loadContainerImage() {
docker pull $1
docker save $1 | ctr -n=k8s.io images import -
docker pull $1 || exit 35
docker save $1 | ctr -n=k8s.io images import - || exit 35

}
overrideNetworkConfig() {
Expand Down
2 changes: 1 addition & 1 deletion vhd/packer/install-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ df -h
# warn at 75% space taken
[ -s $(df -P | grep '/dev/sda1' | awk '0+$5 >= 75 {print}') ] || echo "WARNING: 75% of /dev/sda1 is used" >> ${VHD_LOGS_FILEPATH}
# error at 90% space taken
[ -s $(df -P | grep '/dev/sda1' | awk '0+$5 >= 90 {print}') ] || exit 1
[ -s $(df -P | grep '/dev/sda1' | awk '0+$5 >= 95 {print}') ] || exit 1

echo "Using kernel:" >> ${VHD_LOGS_FILEPATH}
tee -a ${VHD_LOGS_FILEPATH} < /proc/version
Expand Down

0 comments on commit a90360b

Please sign in to comment.