[CKA] Node 유형 1) 특정 워커노드 drain 하기 문제문제Set the node named ek8s-node-1 as unavailable and reschedule all the pods running on it.풀이이 문제는 https://killercoda.com/killer-shell-cka/scenario/playground 에서 풀이하는 것으로 하자drain 명령을 통해 특정 노드를 스케줄러에서 제외시켜 파드가 할당되지 않도록 하고, 기존에 배포된 파드를 다른 노드로 이동한다.kubectl drain {노드이름} --ignore-daemonsets --delete-local-data --force공식문서에서 Safely Drain a Node를 찾으면 -ignore-daemonsets을 사용하는 옵션을 확인.. 2025. 2. 10. [CKA] 스토리지 유형 1) Persistent Volumes 문제문제List all persistent volumes sorted by capacity, saving the full kubectl output to /opt/KUCC00102/volume_list. Use kubectl's own functionality for sorting the output, and do not manipulate it any further.풀이클러스터 내의 모든 Persistent Volumes를 가져와서 저장 용량을 기준으로 정렬된 목록을 출력한다.# PersistentVolumes을 용량별로 정렬해서 조회kubectl get pv --sort-by=.spec.capacity.storage 2) emptyDir 문제문제Create a .. 2025. 2. 10. [CKA] Service 유형 1) NodePort 문제문제Create and configure the service front-end-service so it's accessible through NodePort and routes to the existing pod named front-end. 풀이먼저 front-end이름의 Pod를 만들어야 한다.아래 처럼 명령어로 빠르게 만들 수 있고 공식 문서를 찾아 만들 수도 있다.https://kubernetes.io/docs/concepts/workloads/pods/#using-pods# podapiVersion: v1kind: Podmetadata: name: front-end labels: name: front-endspec: containers: - image: n.. 2025. 2. 9. [CKA] Pod 유형 1) DaemonSet 문제 문제)Ensure a single instance of pod nginx is running on each node of the Kubernetes cluster where nginx also represents the Image name which has to be used.Do not override any taints currently in place. Use DaemonSet to complete this task and use ds-kusc00201 as DaemonSet name. 답)# 명령어cat apiVersion: apps/v1kind: DaemonSetmetadata: name: ds-kusc00201spec: selector: matchLabe.. 2025. 2. 7. [CKA] Apiserver Crash Apiserver Crash문제. K8s API-Server 장애를 복구한다.답.로그 확인하는 것# journalctl 로 보기journalctl -r (역순)f (front)b (before)로 커서 이동 # cri 상태 확인crictl pscontrolplane $ crictl psCONTAINER IMAGE CREATED STATE NAME ATTEMPT POD ID POD9cffaa1a8bd39 03c7f74a90d48 31 minutes ago Running local-pat.. 2025. 2. 3. [KIND] KIND란? KIND란?https://kind.sigs.k8s.io/ kindkind is a tool for running local Kubernetes clusters using Docker container “nodes”. kind was primarily designed for testing Kubernetes itself, but may be used for local development or CI. If you have go 1.16+ and docker, podman or nerdctl installed gokind.sigs.k8s.io KIND (Kubernetes IN Docker)는 Docker 컨테이너를 사용하여 로컬 Kubernetes 클러스터를 실행하기 위한 도구입니다. 주로 Kubernet.. 2025. 1. 24. 이전 1 ··· 3 4 5 6 7 8 9 10 다음