Ask HN: Is there a low cost way to learn real K8s, after exhausting minikube?
5 points| RestlessAPI | 2 years ago
When I looked at pricing out Azure/AWS, it was like $200 a month for a 4 node cluster.
So HN, if you had to learn K8s on your own, what would you do after minikube?
Also, am I just being dumb? Can I just use minikube to learn all this? At some point I feel like having real nodes with real networks and control planes is better learning.
f0e4c2f7|2 years ago
I've thought before it would be interesting if there was a cloud mock Kubernetes service that returned command output with no backend for learning that was either cheap or free.
One way you can actually work with a setup like this is ChatGPT+ with gpt-4.
Ask it to pretend to be a Kubernetes cluster with the desired number of nodes and act as a Linux terminal prompt with access to the cluster, also please don't return any text except the command output. If I need to ask other questions outside of sending commands I'll put it in {}.
It helps if you also say thank you in the prompt. If it starts deviating say "please stay in character"
I've found this to be a handy way to simulate Linux boxes, Kubernetes clusters, Cisco routers, switches, all kinds of fun stuff.
One last thing I'll mention, learn a bit of terraform or another IaC tool and you can spin up the cluster and delete at will. I find terraform to be especially good for being able to create entire blocks of infrastructure and destroy them easily and thoroughly. Then when you're ready to work or done working you can bring the cluster up and down. You can shave a lot off the monthly cost this way.
Going back to gpt-4 again, there are good templates online - or you can have gpt-4 write the terraform for you describing what you want as well as have it explain the basics of using terraform.
ranc1d|2 years ago
https://github.com/kelseyhightower/kubernetes-the-hard-way
Some costs here but click on the google cloud calc as it seems to have gone up since he wrote this: https://github.com/kelseyhightower/kubernetes-the-hard-way/b...
You can always shut it down when not in use to lower costs of course
ph4te|2 years ago
https://www.ebay.com/itm/204446735467
brutus1213|2 years ago
RestlessAPI|2 years ago
jareds|2 years ago
rogerthis|2 years ago
yeldarb|2 years ago
jareds|2 years ago
fhaldridge7|2 years ago