QuickStart
Best for Linux on metal or a bridged VM
Pre-Req
- Have internet access.
- clone the smol-k8s-lab repo
- Optional: Install k9s, which is like
top
for kubernetes clusters, to monitor the cluster.
These can also be set in a .env file in this directory :)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
|
Then you can run the script! :D
1 2 3 |
|
Ready to clean up this cluster?
To delete the whole cluster, the above k3s install also included an uninstall script that should be in your path already:
1 |
|
Final Touches
Port Forwarding
If you want to access an app outside of port forwarding to test, you'll need to make sure your app's ingress is setup correctly and then you'll need to setup your router to port forward 80->80 and 443->443 for your WAN. then setup DNS for your domain if you want the wider internet to access this remotely.
SSL/TLS
After SSL is working (if it's not, follow the steps in the cert-manager common error troubleshooting guide), you can also change the letsencrypt-staging
value to letsencrypt-prod
for any domains you own and can configure to point to your cluster via DNS.
Remote cluster administration
You can also copy your remote k3s kubeconfig with a little script in ./bash_scripts/k3s/
:
1 2 3 4 5 6 7 |
|