STUDY
[kodekloud] 02 Scheduling : Daemonsets 풀이
Q1. How many DaemonSets are created in the cluster in all namespaces? kubectl get daemonsets --all-namespaces Q2. Which namespace are the DaemonSets created in? Q3. Which of the below is a DaemonSet? >> kube-flannel-ds Q4. On how many nodes are the pods scheduled by the DaemonSet kube-proxy? 1 Q5. What is the image used by the POD deployed by the kube-flannel-ds DaemonSet? kubectl describe daemo..
[kodekloud] 02 Scheduling : Resource Limits 풀이
Q1. A pod called rabbit is deployed. Identify the CPU requirements set on the Pod k get pod rabbit Q2. Delete the rabbit Pod. k delete pod rabbit Q3. Another pod called elephant has been deployed in the default namespace. It fails to get to a running state. Inspect this pod and identify the Reason why it is not running. OOMKilled메모리가 부족하다는 얘기. k describe pod elephant | grep -A5 State Q4. the sta..
[kodekloud] 02 Scheduling : Node Affinity 풀이
Q1. How many Labels exist on node node01? Q2.What is the value set to the label key beta.kubernetes.io/arch on node01? 1번 명령어를 통해 value가 amd64임을 알 수 있음 beta.kubernetes.io/arch=amd64 Q3. Apply a label color=blue to node node01 k label node node01 color=blue Q4. Create a new deployment named blue with the nginx image and 3 replicas. k create deployment blue --image=nginx --replicas=3 Q5. Which nod..
[kodekloud] 02 Scheduling : Taints and Tolerations 풀이
Q1. How many nodes exist on the system? alias k=kubectl; k get nodes Q2.Do any taints exist on node01 node? kubectl describe node node01 | grep -i taints # i 옵션 : 특정 문자열을 대소문자 구분 없이 검색 Q3. Create a taint on node01 with key of spray, value of mortein and effect of NoSchedule k taint node node01 spray=mortein:NoSchedule #kubectl taint NODE NAME KEY_1=VAL_1:TAINT_EFFECT_1 ... KEY_N=VAL_N:TAINT_EFFE..