diff --git a/setup-containerd.sh b/setup-containerd.sh new file mode 100755 index 0000000..72c0203 --- /dev/null +++ b/setup-containerd.sh @@ -0,0 +1,127 @@ +#!/bin/bash +# script that runs +# https://kubernetes.io/docs/setup/production-environment/container-runtime + +# setting MYOS variable +MYOS=$(hostnamectl | awk '/Operating/ { print $3 }') +OSVERSION=$(hostnamectl | awk '/Operating/ { print $4 }') + +echo printing MYOS $MYOS + +##### CentOS 7 config +if [ $MYOS = "CentOS" ] +then + if [ "$EUID" -ne 0 ] + then echo "Please run as root" + exit + fi + echo setting up CentOS 7 with containerd + # Configure prerequisites + modprobe overlay + modprobe br_netfilter + + cat <