Ultima attività 1729791053

Kubespray-readme-3.sh Raw
1git checkout v2.26.0
2docker pull quay.io/kubespray/kubespray:v2.26.0
3docker run --rm -it --mount type=bind,source="$(pwd)"/inventory/sample,dst=/inventory \
4 --mount type=bind,source="${HOME}"/.ssh/id_rsa,dst=/root/.ssh/id_rsa \
5 quay.io/kubespray/kubespray:v2.26.0 bash
6# Inside the container you may now run the kubespray playbooks:
7ansible-playbook -i /inventory/inventory.ini --private-key /root/.ssh/id_rsa cluster.yml