Install And Setup Kubernetes On Fedora

Exported on 25-Sep-2021 13:57:04

Install Kubernetes on Fedora Linux

This Blueprint Installs Kubernetes on Fedora based operating systems

Kubernetes is an open-source platform used to deploy and manage containerized applications. It was originally designed by Google and donated to the Cloud Native Computing Foundation (CNCF) in 2015. Kubernetes has a large and vibrant community working on different add-ons which extend its capabilities.

Pre-Blueprint Attune setup
  1. On the Inputs tab, create a Linux node for the host you wish to install the stack on.
  2. On the Inputs tab, create Linux credentials to connect to the host you wish to install the stack on.
Supported Operating Systems:
  • Fedora
Steps Involved
  • Install Docker on the target machine.
  • Configure Kubernetes package repository.
  • Install Kubernetes and related tools.

Parameters

Name Type Script Reference Default Value Comment
Linux Node Linux / Unix Server linuxNode
Linux User Linux OS Credential linuxUser

1 - Install Docker

Installs and configures Docker community edition.

The connection details have changed from the last step.

Login as user on node

Connect via SSH
ssh user@hostname
This is a Bash Script make sure you run it with bash -l from a terminal session
# Update dnf repository
sudo dnf config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo

# Configure docker repo baseurl
sudo sed -i '3,/baseurl=/c\baseurl=https://download.docker.com/linux/centos/7/$basearch/stable' /etc/yum.repos.d/docker-ce.repo


# Install containerd
sudo dnf -y install https://download.docker.com/linux/centos/7/x86_64/stable/Packages/containerd.io-1.4.9-3.1.el7.x86_64.rpm


# Install docker cli
sudo dnf -y install docker

2 - Start and Enable Docker Service

Configures docker to launch at startup and starts the service.

Login as user on node

Connect via SSH
ssh user@hostname
This is a Bash Script make sure you run it with bash -l from a terminal session
# Enable docker
sudo systemctl enable docker
sudo systemctl start docker
sudo systemctl status docker

3 - Upload Kubernetes Repo Config

Uploads Kubernetes repo config file for yum.

Login as user on node

Connect via SSH
ssh user@hostname
Deploy archive kubernetes.repo.zip to remote path uploads
  1. Locate Files archive "kubernetes.repo.zip", This can be downloaded from Attune
  2. Copy the Files archive to the server
  3. Extract the root of the Files archive to uploads, relative to the home directory
  4. Check that the files are in the correct location

4 - Install Kubernetes Tools

Installs Kubernetes tools, used to launch and manage Kubernetes clusters.

Login as user on node

Connect via SSH
ssh user@hostname
This is a Bash Script make sure you run it with bash -l from a terminal session
# Move repo file
sudo mv ~/uploads/kubernetes.repo /etc/yum.repos.d/

# Install Kubernetes tools
sudo yum -y install kubeadm

kubeadm version