#!/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 <