knox revidoval tento gist . Přejít na revizi
1 file changed, 7 insertions
Kubespray-readme-3.sh(vytvořil soubor)
@@ -0,0 +1,7 @@ | |||
1 | + | git checkout v2.26.0 | |
2 | + | docker pull quay.io/kubespray/kubespray:v2.26.0 | |
3 | + | docker 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: | |
7 | + | ansible-playbook -i /inventory/inventory.ini --private-key /root/.ssh/id_rsa cluster.yml |
Novější
Starší