Certified Kubernetes Administrator (CKA) with Practice Tests (강의 링크, 레퍼런스 노트)
kubectl run nginx --image nginx
kubectl get pods
kubectl get pods -o wide
kubectl describe pod [이름]
kubectl delete pod [이름]
kubectl create -f pod-definition.yml
kubectl apply -f pod-definition.yml
kubectl run [이름] --image=[이미지명] --dry-run=client -o yaml > [파일명].yaml
kubectl create -f [파일명].yml
kubectl get replicationcontroller
kubectl get pods
kubectl replace -f [파일명].yml
kubectl scale --replicas=[숫자] -f [파일명].yml
kubectl scale --replicas=[숫자] replicaset[타입] myapp-replicaset[이름]
kubectl create -f [파일명].yml
kubectl get replicaset
kubectl get pods
kubectl delete replicaset(rs) [이름]
kubectl edit replicaset(rs) [이름]
kubectl run nginx --image=nginx
kubectl run nginx --image=nginx --dry-run=client -o yaml
kubectl create deployment --image=nginx nginx --dry-run=client -o yaml > nginx-deployment.yaml
kubectl create deployment --image=nginx nginx --replicas=4 --dry-run=client -o yaml > nginx-deployment.yaml
kubectl create -f nginx-deployment.yaml
kubectl create -f [파일명].yml
kubectl get deployments(deploy)
kubectl get all
kubectl create -f [파일명].yaml
kubectl get services(svc)
curl http://192.168.1.2:30008
kubectl expose pod [pod명] --port=[포트번호] --name [service명] --dry-run=client -o yaml
kubectl create service clusterip [pod명] --tcp=6379:6379 --dry-run=client -o yaml
kubectl run [pod명] --image=[이미지명] --port=[포트번호] --expose=true
kubectl get pods
kubectl create -f [파일명].yaml
kubectl get pods --namespace=kube-system(-n=)
kubectl create -f [파일명].yaml --namespace=dev
kubectl get namespaces(ns)
kubectl create namespace [이름]
kubectl config set-context $(kubectl config current-context) --namespace=dev
kubectl get pods --all-namespaces(-A)
kubectl create -f [파일명].yaml
kubectl run --image=nginx nginx
kubectl create deployment --image=nginx nginx
kubectl expose deployment nginx --port=80
kubectl edit deployment nginx
kubectl scale deployment nginx --replicas=5
kubectl set image deployment nginx nginx=nginx:1.18
kubectl create -f nginx.yaml
kubectl replace -f nginx.yaml
kubectl delete -f nginx.yaml
kubectl apply -f nginx.yaml