Skip to content

Latest commit

 

History

History
83 lines (58 loc) · 2.93 KB

File metadata and controls

83 lines (58 loc) · 2.93 KB

Certified Kubernetes Administrator (CKA)

cncf.io/certification/cka

Advices

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
Examples
kubectl get pod shell-demo
kubectl exec --stdin --tty shell-demo -- /bin/bash
kubectl exec shell-demo env

Knowledge check

Be able to:

  1. Take a snapshot of etcd data
Answer 1

TODO

  1. Print out a list of all nodes that are Ready but not tainted with NoSchedule
Answer 2

TODO

External notes

TODO :