- Time flies really fast, go quickly
- Practice troubleshooting
- Get to know the Kubernetes documentation
- Have some experience with BusyBox (Docker image source, Playing with Busybox)
Examples
# Create a 1-pod deployment and expose the deployment with a service (see https://kubernetes.io/docs/concepts/workloads/controllers/deployment/)
kubectl apply -f https://k8s.io/examples/controllers/nginx-deployment.yaml
#kubectl create deployment nginx --image=nginx
kubectl get deployments
kubectl create service nodeport nginx --tcp=80:80
kubectl get services
curl master:30386
curl node01:30386
# Stand up a busybox:1.28 pod and do nslookup for both the Service and the Container
kubectl run -i --tty busybox --image=busybox -- sh- Create Kubernetes objects from the command line (no YAML)
Examples
kubectl create rolebinding john-admin-binding --clusterrole=admin --user=john --namespace=acme- Know ways to interact with the container in the pod (see Get a Shell to a Running Container and kubectl exec)
Examples
kubectl get pod shell-demo
kubectl exec --stdin --tty shell-demo -- /bin/bash
kubectl exec shell-demo envBe able to:
- Take a snapshot of etcd data
Answer 1
TODO
- Print out a list of all nodes that are Ready but not tainted with NoSchedule
Answer 2
TODO
TODO :