Last active
April 29, 2023 18:57
-
-
Save ngeorger/112c51329cd5499c4490198ee3a6c7f7 to your computer and use it in GitHub Desktop.
Create a 2 node kubernetes cluster with microk8s
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
## 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