Home > Workload Solutions > SQL Server > White Papers > SQL Server 2019 Containers on Linux > Step 1: Install Kubernetes
Many Kubernetes solutions are available today. For example, turnkey managed Kubernetes offerings from cloud providers give IT organizations a zero-data-center- footprint solution that requires no installation. An on-premises private cloud Kubernetes implementation offers greater control and flexibility but requires investment in infrastructure and training. For this use case, we show a basic Kubernetes installation to demonstrate how having the container orchestration system on our LAN provides greater performance and control as well as the ability to customize the configuration.
Note: For complete Kubernetes installation instructions, see the Kubernetes documentation.
We install Kubernetes as follows:
cat <<EOF > /etc/yum.repos.d/kubernetes.repo
[kubernetes]
name=Kubernetes
baseurl=https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64
enabled=1
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
exclude=kube*
EOF
# Set SELinux in permissive mode (effectively disabling it)
setenforce 0
sed -i 's/^SELINUX=enforcing$/SELINUX=permissive/' /etc/selinux/config
yum install -y kubelet kubeadm kubectl --disableexcludes=kubernetes
systemctl enable --now kubelet