Download Attune CE

Install and Setup Kubernetes on Ubuntu/Debian

Exported on 25-Sep-2021 13:32:18

Install Kubernetes on Ubuntu Linux

This Blueprint Installs Kubernetes on Ubuntu based operating systems

Kubernetes, also known as K8s, is an open-source system for automating deployment, scaling, and management of containerized applications. Kubernetes is production ready technology, and makes it easy to deploy applications on the cloud that can be scaled very easily with its internal tools.

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:
  • Ubuntu
  • Debian
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

Updates apt repositories and Installs docker

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 -y update

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

2 - Start and Enable Docker

Configures docker to launch at startup

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 - Install curl

Installs curl

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
# Add GPG key
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add

# Install curl
sudo apt-get -y install curl

4 - Add Software Repositories

Add Kubernetes Repositories to apt

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
# Add Software Repositories
sudo apt-add-repository "deb http://apt.kubernetes.io/ kubernetes-xenial main"

5 - Install Kubernetes tools

Install Kubernetes tools.

Kubeadm is a tool that helps initialize a cluster. Kubelet is the work package, which runs on every node and starts containers.

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
# Install Kubernetes tools
sudo apt-get install kubeadm kubelet kubectl

kubeadm version