Last active
October 31, 2024 06:36
-
-
Save bodsch/d063b9ca1717e8880576f502727bc99d to your computer and use it in GitHub Desktop.
run local autok3s serve
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /usr/local/bin | |
curl -L -o k3d-5.7.4 https://github.com/k3d-io/k3d/releases/download/v5.7.4/k3d-linux-amd64 | |
curl -L -o autok3s-0.9.3 https://github.com/cnrancher/autok3s/releases/download/v0.9.3/autok3s_linux_amd64 | |
curl -L -o kube-explorer-0.5.0 https://github.com/cnrancher/kube-explorer/releases/download/v0.5.0/kube-explorer-linux-amd64 | |
ln -s k3d-5.7.4 k3d | |
ln -s autok3s-0.9.3 autok3s | |
ln -s kube-explorer-0.5.0 kube-explorer | |
chmod +x kube-explorer-0.5.0 k3d-5.7.4 autok3s-0.9.3 | |
unset DOCKER_HOST | |
autok3s serve |
autok3s create --provider k3d --master 1 --worker 0 --master-extra-args '--cluster-domain k3s.local --embedded-registry' --name foo --api-port 0.0.0.0:0 --image docker.io/rancher/k3s:v1.29.6-k3s2 --debug
autok3s create --provider native --docker-script https://get.docker.com --k3s-channel stable --k3s-install-script https://get.k3s.io --name local cluster --rollback --ssh-agent-auth --ssh-key-path /home/bodsch/.ssh/id_ansible_ed25519.pub --ssh-port 22 --ssh-user sysadm --master-ips 192.168.115.10 --worker-ips 192.168.115.11,192.168.115.12
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
autok3s create --provider k3d --master 1 --name local-test --worker 2 --api-port 0.0.0.0:0 --image docker.io/rancher/k3s:v1.29.6-k3s2
autok3s explorer --context k3d-local-test --port 8080
autok3s delete --provider k3d --name local-test