Skip to content

Commit

Permalink
adjust defaults on k8s-no-docker.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
clacsinaRX-M committed Jan 19, 2025
1 parent f81fa11 commit 14ca122
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions k8s-no-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,20 @@
# limitations under the License.

# This script assumes you have Docker already installed

set -e

# Increase inotify limits
sudo sysctl fs.inotify.max_user_watches=524288
sudo sysctl fs.inotify.max_user_instances=512
echo "sysctl fs.inotify.max_user_watches=524288" | sudo tee -a /etc/sysctl.conf
echo "sysctl fs.inotify.max_user_instances=512" | sudo tee -a /etc/sysctl.conf

# Defaults
DOCKER_VERSION="${DOCKER_VERSION:-"26.1.1"}"
K8S_VERSION="${K8S_VERSION:-"v1.31.1"}"
K8S_REPO="https://pkgs.k8s.io/core:/stable:/${K8S_VERSION%.*}/deb"

# Configure Docker's bundled containerd to enable cni & use systemd for cgroups
sudo cp /etc/containerd/config.toml /etc/containerd/config.bak
sudo containerd config default | sudo tee /etc/containerd/config.toml
Expand Down

0 comments on commit 14ca122

Please sign in to comment.