https://kubernetes.io/ko/docs/reference/kubectl/cheatsheet/
CKA 문제 유형
CKAD 문제 유형
경로들
get pods 개수만 알고 싶을 때
kubectx, kubens
edit 후 replace force
A quick note on editing Pods and Deployments
Labels & Selectors & Annotation ( wc -l )
Taints & Tolerations
Taints and Tolerations vs Node Affinity
# --restart=Never는 Pod 만들 때 쓰는거임
# 안쓰면 Deployment를 만듦
kubectl run --restart=Never --image=busybox static-busybox --dry-run=client -o yaml --command -- sleep 1000 > /etc/kubernetes/manifests/static-busybox.yaml
command:
- sleep
- "4800"
Create a new user called john. Grant him access to the cluster. John should have permission to create, list, get, update and delete pods in the development namespace . The private key exists in the location: /root/CKA/john.key and csr at /root/CKA/john.csr.
Important Note: As of kubernetes 1.19, the CertificateSigningRequest object expects a signerName.
Please refer the documentation to see an example. The documentation tab is available at the top right of terminal.