[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] 권한 유형 1) secret 문제문제Create a Kubernetes secret as follows:Name: super-secretpassword: bobCreate a pod named pod-secrets-via-file Image, which mounts a secret named super-secret at /secrets.Create a second pod named pod-secrets-via-env Image, which exports password as CONFIDENTIAL풀이명령어는 검색을 해결해야한다..from-literal 이걸 기억해야한다!https://kubernetes.io/search/?q=from-literalhttps://kubernetes.io/docs/concepts/co.. 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 ··· 8 9 10 11 12 13 14 ··· 17 다음