Installing Kubernetes with Kubespray

This quickstart helps to install a Kubernetes cluster hosted on GCE, Azure, OpenStack, AWS, vSphere, Packet (bare metal), Oracle Cloud Infrastructure (Experimental) or Baremetal with

Kubespray is a composition of

To choose a tool which best fits your use case, read kubeadm and kops.

Creating a cluster

(1/5) Meet the underlay requirements

Provision servers with the following

Kubespray provides the following utilities to help provision your environment:

(2/5) Compose an inventory file

After you provision your servers, create an ".

(3/5) Plan your cluster deployment

Kubespray provides the ability to customize many aspects of the deployment:

Kubespray customizations can be made to a

(4/5) Deploy a Cluster

Next, deploy your cluster:

Cluster deployment using

Large deployments (100+ nodes) may require

(5/5) Verify the deployment

Kubespray provides a way to verify inter-pod connectivity and DNS resolve with

Cluster operations

Kubespray provides additional playbooks to manage your cluster: scale and upgrade.

Scale your cluster

You can add worker nodes from your cluster by running the scale playbook. For more information, see "". You can remove worker nodes from your cluster by running the remove-node playbook. For more information, see "".

Upgrade your cluster

You can upgrade your cluster by running the upgrade-cluster playbook. For more information, see "".

Cleanup

You can reset your nodes and wipe out all components installed with Kubespray via the .

Feedback

What's next

Check out planned work on Kubespray's

Last modified November 16, 2021 at 10:07 PM PST: