mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-01-07 14:02:08 -03:30
* docs: remove obsolete reference to `gen_tags.sh` `scripts/gen_tags.sh` was removed in 373b952a0cd23cbf185ba12ca317631e1ea88dda * docs: fix 404 links Merge the `Requirements` section with the `Usage` section and just reference the inventory documentation, which then points to all further information related to group vars etc.
1.2 KiB
1.2 KiB
Ansible collection
Kubespray can be installed as an Ansible collection.
Usage
-
Set up an inventory with the appropriate host groups and required group vars. See also the documentation on kubespray inventories and the general "Getting started" documentation.
-
Add Kubespray to your requirements.yml file
collections: - name: https://github.com/kubernetes-sigs/kubespray type: git version: master # use the appropriate tag or branch for the version you need -
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