본문 바로가기

k8s4

[따배쿠CKA-3]Static-Pod 생성하기 1. kubectl 구동방식 * 전제조건: master Node 1개, node1, node2 1) "kubectl nginx pod" 라는 명령어를 사용자가 입력하면 2) master Node 의 API 로 전달, API 가 전달을 받으면, 3) master Node 의 ETCD 안에 있는 클러스터를 꺼내서 scheduler에게 보내서 요청을한다. 4) Scheduler 은 "kubectl nginx pod" 명령어에 Node1, Node2 중에 어디가 더 적합한지 확인을 함 5) Scheulder은 노드와 클러스터의 상태를 확인하고 가장 적합한 Node를 찾아 API 에게 알려준다. 예를들면 적합한 Node 가 1번 Node 이면 6) API가 1번 Node 의 kubelet 에게 요청을 한다. "k.. 2022. 8. 3.
[cka]Network- Networking weave 1.How many Nodes are part of this cluster? Including master and worker nodes k get nodes A) 2 2. What is the Networking Solution used by this cluster? cat cat /etc/cni/net.d/10-weave.conflist A) weave 3.How many weave agents/peers are deployed in this cluster? k get pods -A A) 2 4. On which nodes are the weave peers present? A) one on every noe=de 5. Identify the name of the bridge network/inter.. 2022. 8. 3.
[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-services 이번에는 services 관련된 문제를 풀어보겠습니다. 1. How many Services exist on the system? # k get services A) 1 2.That is a default service created by Kubernetes at launch. A) ok : 별 내용 없음 3.What is the type of the default kubernetes service? # k get services : 위의 내용 참고 A) ClusterIP 4. What is the targetPort configured on the kubernetes service? # k describe services kubernetes A) 6443 5.How many labels are conf.. 2022. 6. 7.