In this introductory week we will get our hands dirty with the basics around pods: Pods are the core components of a k8s cluster. If there is something running, it is running in a pod (or a job).
Here the list of the commands that we will run:
kubectl run hello --generator=run-pod/v1 --image speedwing/hello:latestkubectl get po- Observe fields
kubectl get po -o wide- Observe pod ip, node ip
kubectl exec -it hello bashkubectl port-forward hello 8080kubectl logs -f hellokubectl get po hello -o yaml- Metadata, spec, status
kubectl rm po hellokubectl run hello --generator=deployment/apps.v1beta1 --image speedwing/hello:latestkubectl get deploy- Observe fields
kubectl scale --replicas=3 deploy/hellokubectl get po -w