Skip to content

Instantly share code, notes, and snippets.

@janeczku
Last active April 29, 2020 12:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save janeczku/73f474cc610bef0341e99fa002a2453c to your computer and use it in GitHub Desktop.
Save janeczku/73f474cc610bef0341e99fa002a2453c to your computer and use it in GitHub Desktop.
Add a k3s worker to a k3d master

On the k3d host:

curl -s https://raw.githubusercontent.com/rancher/k3d/master/install.sh | TAG=v3.0.0-alpha.4 bash
k3d create cluster --network host --k3s-server-arg "--token=changeme"

On the k3s host:

curl -sfL https://get.k3s.io | K3S_URL="https://<k3d-host-ip>:6443" K3S_TOKEN="changeme" sh -s -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment