cka

    [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..

    [kodekloud] 02 Scheduling : Labels and Selectors 풀이

    Q1. We have deployed a number of PODs. They are labelled with tier, env and bu. How many PODs exist in the dev environment (env)? k get pods --selector env=dev # env가 dev인 파드 불러오기 k get pods --selector env=dev --no-headers | wc -l #개수 세기 Q2. How many PODs are in the finance business unit (bu)? k get pods --selector bu=finance --no-headers | wc -l '''--no-headers를 하지 않으면 헤더까지 카운팅 되기 때문에 제외해야함''' ..