Devops Archives - THEMWEBS
Here are some useful kubernetes commands for future to me to look back on and remember. Maybe you find them useful too.
kubectl get po
kubectl get po -w
-w is for watch so you can watch your pods die and come back to life
kubectl create -f myawesomeconfig.yml
kubectl delete my-not-so-awesome-deployment
exec into pod
ssh into pod to do terminal stuff like working with your interactive Python, PHP or node shells
kubectl exec -ti my-awesome-app-1234 bash
kubectl get sv
kubectl get services
kubectl logs my-awesome-app
decribe pods, get detailed information about the pods status
kubectl describe po my-awesome-app
I recently got into audio books and became an Audible subscriber. One of the first books I got stuck into was The Phoenix Project by Gene Kim, Kevin Behr, George Spafford.
This is a great book (audiobook). I had so much fun listening to this book in the traffic and on the bus rides into work, I highly recommend it if you are in the IT industry. It’s fast paced listening very funny and dramatic in places.
You should check it out for sure.
Kubernetes is a very powerful system used for managing containerised software applications in a clustered environment.
It is a command line driven orchestration system developed by Google to manage containerised applications across a cluster of nodes in a cloud architecture environment like Google Cloud Platform.
A pod is unit managed by kubernetes and you. It is made up of one ore more containers that make up your application.
Services act as a load balancer for other containers.
Services are an interface to a group of containers they provide a single access point.
By deploying a service, you easily get discover-ability and simplify your container design.
A replication controller helps you manage your containers by allowing you to kill and bring to life new and existing containers.
Horizontally scaled. If a container temporarily dies the replication controller kicks into action a replacement container automatically.
Is tag that is used for managing your pods by naming them with key value pairs. Its for keeping organised, mostly meta data in file.