Skip to content

Latest commit

 

History

History
54 lines (40 loc) · 1.04 KB

cka.md

File metadata and controls

54 lines (40 loc) · 1.04 KB

Certified Kubernetes Administrator (CKA)

Basic Commands

Which command you run to view your nodes?

kubectl get nodes

Which command you run to view all pods running on all namespaces?

kubectl get pods --all-namespaces

How to list all namespaces?

kubectl get namespaces

How to create a deployment?
cat << EOF | kubectl create -f -
> apiVersion: v1
> kind: Pod
> metadata:
>   name: nginx
> spec:
>   containers:
>   - name: nginx
>     image: nginx
> EOF

How to print information on a specific pod?

kubectl describe pod pod_name

How to delete a pod?

kubectl delete pod pod_name

How to check the status of all the components?