Something to think about.
Monthly Archives: July 2021
Kubernetes? A comic to get started …
Kubernetes Comic
(It’s Greek for Helmsman)
I went through the steps provided in that comic and they don’t work as is. Figured things out, use these updated steps instead if you want to go through the example:
# use to set a default zone
gcloud init --console-only
gcloud container clusters create myCluster
#kubectl run app --image gcr.io/google-samples/hello-app:1.0
kubectl create deployment app --image gcr.io/google-samples/hello-app:1.0
kubectl scale deployment app --replicas 3
#kubectl expose deployment app --port 80 --type=LoadBalancer
kubectl expose deployment app --port 80 --type=LoadBalancer --target-port 8080
kubectl get service app
curl http://192.0.2.103:80 (use the external ip shown in previous step)
#kubectl set image deployment app app=gcr.io/google-samples/hello-app:2.0
kubectl set image deployment app hello-app=gcr.io/google-samples/hello-app:2.0
# bonus, here's an autoscale example
kubectl autoscale deployment app --cpu-percent=80 --min=1 --max=5
Kubernetes and bright people
I am *LOVING* that the kubernetes community is like a niche club, like how linux was back in the early days before everyone learned about it, and… has some seriously intelligent folks in it.
Watching video after video … soaking it all up. So fun … here’s a good example: i built a Raspberry Pi SUPER COMPUTER
The Move to Kube – Pi-Hole – Phase 1
Oh no, tragedy… some technical issues with the first video documenting the move to kubernetes.
Posting anyways as motivation to get the video remade: