전체 글133 [cka]kodekloud-DaemonSets 1.How many DaemonSets are created in the cluster in all namespaces? Check all namespaces # k get daemonsets.apps -A : -A 모든 네임스페이스 전부 A) 2 2. Which namespace are the DaemonSets created in? # k get daemonsets.apps -A A) kube-system 3. Which of the below is a DaemonSet? # k get daemonsets.apps -A : kube-proxy, kube-flannel-ds 중 한가지 A) kube-flannel-ds 4. On how many nodes are the pods scheduled by .. 2022. 6. 9. [cka]kodekloud-Resources Limit 1.A pod called rabbit is deployed. Identify the CPU requirements set on the Pod in the current(default) namespace # k describe pod rabbit : 하단의 그림을 보면 Limits 와 Requests 가 있다 : 문제는 현재 확인되는 CPU 를 확인 하는 부분이기 때문에 Limits 가 아닌 Request( 현재 요청 된 CPU) 1 이 정답이 된다. A) 1 2.Delete the rabbit Pod. Once deleted, wait for the pod to fully terminate. # k delete pod rabbit 3.Another pod called elephant has been d.. 2022. 6. 9. [cka]kodekloud-Affinity 1. How many Labels exist on node node01? # k describe nodes node01 A) 5 2.What is the value set to the label key beta.kubernetes.io/arch on node01? # k describe nodes node01 : 위의 그림 참조 A) amd64 3. Apply a label color=blue to node node01 color = blue # k label nodes node01 color=blue 4. Create a new deployment named blue with the nginx image and 3 replicas. # k create deployment blue --image=ngin.. 2022. 6. 9. [cka]kodekloud-Taints & Tolerations 1.How many nodes exist on the system? Including the controlplane node. # k get nodes A) 2 2. Do any taints exist on node01 node? # k describe node node01 A) NO 3. Create a taint on node01 with key of spray, value of mortein and effect of NoSchedule Key = spray Value = mortein Effect = NoSchedule # k taint node node01 spray=mortein:NoSchedule # k describe nodes node01 : node01 노드에 key, vaule, eff.. 2022. 6. 8. [cka]kodekloud - Labels & selectors 1. We have deployed a number of PODs. They are labelled with tier, env and bu. How many PODs exist in the dev environment (env)? Use selectors to filter the output # k get pods --selector env=dev --no-headers | wc -l : 문제 의도는 여러 라벨링 중 env=dev 인 파드를 찾는것이다. : 첫번째 카운팅을 보면 수량이 7개인데 8개로 확인된다 : 그 이유는 NAME, READY, STATUS, RESTARTS, AGE 제일 상단의 headers 들이 카운팅이 된 것을 확인 할 수 있다. " --no-headers" 옵션을 통해 상단의 줄.. 2022. 6. 8. [cka] kodekloud-scheduling 1.A pod definition file nginx.yaml is given. Create a pod using the file. Only create the POD for now. We will inspect its status next. CheckCompleteIncomplete 2. What is the status of the created POD? # k get pods A) pending 3. Why is the POD in a pending state? Inspect the environment for various kubernetes control plane components. : 스케줄에 할당되지 않으면 pending 될 수 있다. : NoExecute op = Exists for 3.. 2022. 6. 8. 이전 1 ··· 18 19 20 21 22 23 다음