Skip to content

Instantly share code, notes, and snippets.

@ngeorger
Last active April 29, 2023 18:57
Show Gist options
  • Save ngeorger/112c51329cd5499c4490198ee3a6c7f7 to your computer and use it in GitHub Desktop.
Save ngeorger/112c51329cd5499c4490198ee3a6c7f7 to your computer and use it in GitHub Desktop.
Create a 2 node kubernetes cluster with microk8s
## MASTER NODE:
```sh
microk8s.add-node --token-ttl 3600 --format yaml --token $(openssl rand -hex 32)
```
## WORKER NODE
Using the previous output:
```sh
microk8s.join $PREVIOUS_OUTPUT --worker
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment