Software Package Help¶
Docker Installation on Ubuntu¶
The following commands can be used to install Docker on Ubuntu:
sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common -y
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
sudo apt-get install docker-ce -y
Docker Installation on CentOS¶
The following commands can be used to install Docker on CentOS:
sudo yum install -y yum-utils device-mapper-persistent-data lvm2
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
sudo yum install -y docker-ce-18.09.2-3.el7 docker-ce-cli-18.09.2-3.el7 containerd.io
sudo systemctl start docker
sudo systemctl enable docker
kubectl Installation¶
Kubectl can be installed on the installation node using the following commands:
sudo curl -LO https://dl.k8s.io/release/v1.20.0/bin/linux/amd64/kubectl
sudo chmod +x kubectl
sudo cp kubectl /usr/local/bin/
PATH=$PATH:/usr/local/bin
export KUBECONFIG=kubeconfig
Removing Nouveau Driver¶
In order to remove the Nouveau driver from a cluster node, you can use the following commands.
rmmod nouveau
The next step is to blacklist it from the node. This can be accomplished by adding “blacklist nouveau” to the blacklist file.
vim /etc/modprobe.d/blacklist.conf
The following command will update the system based on the changes made.
sudo update-initramfs -u
Finally, reboot the node.
vim /etc/default/grub
Add modprobe.blacklist=nouveau in GRUB_CMDLINE_LINUX_DEFAULT= modprobe.blacklist=nouveau
grub2-mkconfig -o /boot/grub2/grub.cfg
Reboot the node