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. Provision servers with the following
Kubespray provides the following utilities to help provision your environment: After you provision your servers, create an ". Kubespray provides the ability to customize many aspects of the deployment: Kubespray customizations can be made to a
Next, deploy your cluster: Cluster deployment using
Large deployments (100+ nodes) may require
Kubespray provides a way to verify inter-pod connectivity and DNS resolve with
Kubespray provides additional playbooks to manage your cluster: scale and upgrade. 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 "". You can upgrade your cluster by running the upgrade-cluster playbook. For more information, see "". You can reset your nodes and wipe out all components installed with Kubespray via the .
Creating a cluster
(1/5) Meet the underlay requirements
ansible_become
flag or command parameters --become
or -b
should be specified(2/5) Compose an inventory file
(3/5) Plan your cluster deployment
(4/5) Deploy a Cluster
ansible-playbook -i your/inventory/inventory.ini cluster.yml -b -v \
--private-key=~/.ssh/private_key
(5/5) Verify the deployment
Cluster operations
Scale your cluster
Upgrade your cluster
Cleanup
Feedback
What's next