k8s-sig-cluster-lifecycleawskubesprayhigh-availabilityansiblekubernetes-clustergcekubernetesbare-metal
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1.1 KiB
1.1 KiB
Ansible collection
Kubespray can be installed as an Ansible collection.
Requirements
- An inventory file with the appropriate host groups. See the README.
- A
group_vars
directory. These group variables need to match the appropriate variable names underinventory/local/group_vars
. See the README.
Usage
-
Add Kubespray to your requirements.yml file
collections: - name: https://github.com/kubernetes-sigs/kubespray type: git version: v2.21.0
-
Install your collection
ansible-galaxy install -r requirements.yml
-
Create a playbook to install your Kubernetes cluster
- name: Install Kubernetes ansible.builtin.import_playbook: kubernetes_sigs.kubespray.cluster
-
Update INVENTORY and PLAYBOOK so that they point to your inventory file and the playbook you created above, and then install Kubespray
ansible-playbook -i INVENTORY --become --become-user=root PLAYBOOK