k8s Refresher
k8s
Great k8s Refresher. No bullshit. +100:
https://www.youtube.com/watch?v=X48VuDVv0do
Also, docker desktop on Mac can run a local k8s cluster. But if this fails to start then this will help:
https://github.com/docker/for-mac/issues/5027#issuecomment-718076014
Some useful commands
# CRUD of k8s unit of deployment
kubectl create/edit/delete deployment [name]
kubectl apply | delete -f [file name]
# READ/DEBUG
kubectl get nodes | pods | services | replicaset | deployment
kubectl describe pod [pod name]
kubectl logs [pod name]
kubectl exec -it [pod name] -- bin/bash
kubectl get all # everything
kubectl get pod --watch # dynamic
kubectl get pod -o wide # additional info
Comments
Post a Comment