Install And Setup Kubernetes On RedHat

Exported on 25-Sep-2021 13:46:51

Install Kubernetes on RedHat Linux

This Blueprint Installs Kubernetes on RedHat based operating systems

Kubernetes is an open-source system for automating deployments, scaling and management of containerized applications. It groups containers that make up an application into logical units for easy management and discovery.

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:
  • RedHat
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 - CentOS

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 yum repository
sudo yum check-update

# Install docker
curl -fsSL https://get.docker.com/ | sh

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