Skip to content

Instantly share code, notes, and snippets.

@bodsch
Last active October 31, 2024 06:36
Show Gist options
  • Save bodsch/d063b9ca1717e8880576f502727bc99d to your computer and use it in GitHub Desktop.
Save bodsch/d063b9ca1717e8880576f502727bc99d to your computer and use it in GitHub Desktop.
run local autok3s serve
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
@bodsch
Copy link
Author

bodsch commented Oct 30, 2024

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

@bodsch
Copy link
Author

bodsch commented Oct 31, 2024

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