본문 바로가기

cloud111

[cka]kodekloud-Multiple Schedulers 1. What is the name of the POD that deploys the default kubernetes scheduler in this environment? # k get pods # k get pods -ALL A) kube-scheduler-controlplane 2.What is the image used to deploy the kubernetes scheduler? Inspect the kubernetes scheduler pod and identify the image # k describe pod kube-scheduler-controlpane -n kube-system 3.We have already created the ServiceAccount and ClusterRo.. 2022. 6. 13.
[cka]kodekloud-static pods 1. How many static pods exist in this cluster in all namespaces? # k get pods -A # k get pod kube-apiserver-controlplane -n kube-system -o yaml : 이 문제를 풀기 위해 두가지를 확인 해야 한다. : static pod 를 구분하기 위한 방법이다. 그림 1 pod 의 이름 : kube-apiserver-controlplane 그림 2 pod 의 이름 : coredns-64897985d-fj6rl 해당 이미지를 보면 ownerReferences / kind: 내용을 보면 그림 1 은 : Node, 그림 2는: ReplicaSet 인걸 확인 할 수 있다. 즉, 그림 1 은 node -> stati.. 2022. 6. 13.
[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.