Advanced Search
Search Results
182 total results found
리소스 관리
라벨링과 애노테이션
모니터링과 로깅
메트릭 수집 로그 관리
클러스터 업그레이드
클러스터 구성 요소 소개
쿠버네티스 중요 요소들을 논리적으로 간단하게 설명 하고 나눤다면: Hardware(하드웨어) Node Orchestration(오케스트레이션) Deployment, Job, CronJob, StatefulSet, DaemonSet Configuration(구성) ConfigMap, Secret Persistence(지속성) PersistentVolume, PersistentVolumeClaim(PVC) ...
Pod 템플릿 정의하기
Pod 쿠버네티스에서는 애플리케이션을 배포할 수 있는 최소 단위인 파드(Pod)라는 개념을 제공한다. 파드는 하나 이상의 컨테이너를 포함할 수 있으며, 같은 파드 안에 있는 컨테이너는 동일한 호스트에서 실행된다. 위에서 본 예시 Yaml파일을 적용 해보면: kubectl apply -f example-pod.yaml pod/example-pod.yaml created 이렇게 Nginx 파드가 생성 되었다. 확인 결과: kubectl get pods...
[7] Rolling Update & Rollback
❓Rolling Update Create a deployment as follows: 작업 클러스터: k8s TASK: name: nginx-app Using container nginx with version 1.11.10-alpine The deployment should contain 3 replicas Next, deploy the application with new version 1.11.13-alpine, by ...
[8] NodeSelector
NodeSelector란? 특정 Application Pod를 특정 Node에 실행시켜달라는 것 ❓Schedule a pod 작업 클러스터: k8s Schedule a pod as follows: Name: eshop-store Image: nginx Node selector: disktype=ssd Reference docs에서 nodeselector 검색 Assigning Pods to Nodes 실습 # 클러스터 전환...
[9] Node 관리
Node 관련된 명령어 정리 # 현재 시스템의 노드 정보 확인하기 kubectl get nodes # 더 자세한 정보 확인 kubectl get nodes -o wide # 해당 node에 대한 자세한 정보 확인 kubectl describe node {node 이름} # pod에 대한 자세한 정보 확인 kubectl get pods -o wide # 특정 node에는 배치되지 않도록 하기 (스케줄링 중지) kubectl cor...
[10] Node 정보 수집
❓Check Ready Nodes Check to see how many nodes are ready (not including nodes tainted NoSchedule) and write the number to /var/CKA2022/RN0001 not including nodes tainted NoSchedule —> tainted에 NoSchedule 적혀있는건 제외 실습 # ready 단어와 일치하는 것만 결과 출력 [us...
[11] Deployment & Expose the Service
❓Deploy and Service Reconfigure the existing deployment front-end and add a port specification named http exposing port 80/tcp of the existing container nginx. Create a new service named front-end-svc exposing the container port http. Configure the new se...
[12] Pod Log 추출
❓Record the extracted log lines Monitor the logs of pod custom-app and: Extract log lines corresponding to error file not found. write them to /var/CKA2022/podlog 작업 클러스터: hk8s Reference docs에서 reference 검색 > logs 검색 Kubectl Reference Docs 실습 ...
[13] CPU 사용량이 높은 Pod 검색
❓Find a Pod that consumes a lot of CPU From the pod label name=overloaded-cpu, find pods running high CPU workloads and write the name of the pod consuming most CPU to the file /var/CKA2022/cpu_load_pod.txt 작업 클러스터: hk8s Reference docs에서 referenc...
[14] init 컨테이너를 포함한 Pod 운영
init 컨테이너에 대해 알아보기 docs에서 init container 검색 초기화 컨테이너 init 컨테이너란 초기화 컨테이너는 파드의 앱 컨테이너들이 실행되기 전에 실행되는 특수한 컨테이너이다. 이 init 컨테이너가 정상적으로 실행되야 main 컨테이너가 실행되고 실패할 경우 성공할때까지 재실행된다. 비슷한 경우로는 AWS의 user data같은거 Tip! 이 유형에 대한 문제는 CKA보다는 CKAD에서 더 자주 나오는 유형의 문제이다 ❓...
[15] NodePort 서비스 생성
NodePort란? 클러스터 외부의 사용자가 클러스터 내에 위치한 서비스에 접근하도록 할 수 있게 하는 서비스타입 ❓NodePort Service Create the service as type NodePort with port 32767 for the nginx pod with the pod selector app:webui 작업 클러스터: k8s Reference docs에서 nodeport 검색 → Type Nodeport 부분 Serv...
[16] ConfigMap 운영
ConfigMap이란? ConfigMap은 애플리케이션 설정 데이터를 관리하는 데 사용된다. 애플리케이션 구성, 환경 변수, 설정 파일 등과 같은 설정 정보를 저장하고 관리하는 데 사용 된다. ConfigMap은 YAML 파일로 정의되며, Pod, Deployment, StatefulSet 등의 다른 K8s 리소스에서 사용될 수 있다. 실습
[17] Secret 운영
❓Secret을 생성 후 Pod에 전달 Create a kubernetes secret and expose using a file in the pod. 작업 클러스터: k8s Create a kubernetes secret as follows: Name: super-secret DATA: password=secretpass Create a Pod named pod-secrets-via-file, using ...
[18] Ingress 구성
Ingress란? 인그레스는 클러스터 외부에서 클러스터 내부 서비스로 HTTP와 HTTPS 경로를 노출한다. 트래픽 라우팅은 인그레스 리소스에 정의된 규칙에 의해 컨트롤된다. Reference docs에서 ingress 검색 인그레스(Ingress) ❓Ingress 구성 Application Service 운영 작업 클러스터: k8s ingress-nginx namespace에 nginx 이미지를 app=nginx 레이블을 가지고 실행하는...
[19] Persistent Volume 생성
Persistent Volume이란 클러스터 내의 지속적인 데이터 저장을 위한 추상화된 스토리지를 제공한다. 클러스터 외부 스토리지 리소스를 클러스터 내부에서 사용할 수 있게 하며, 데이터의 지속성과 데이터 볼륨에 대한 독립성을 보장 한다. 그 외 클러스터 관리자에 의해 생성되고 관리되며, Pod 및 다른 K8s 리소스에서 사용할 수 있다. 이를 통해 애플리케이션에서 데이터를 영속적으로 저장하고 공유할 수 있다. Reference docs에서 persist...
[20] Persistent Volume Claim을 사용하는 Pod 운영
❓Application with Persistent Volume Claim Create a new PersistentVolumeClaim Name: app-volume Storage Class: app-hostpath-sc Capacity: 10Mi Create a new pod which mounts the PersistentVolumeClaim as a volume Name: web-server-pod Image: nginx ...
[21] Check Resource Information
❓Check Resource Information List all PVs sorted by name saving the full kubectl output to /var/CKA2022/my_volumes Use kubectl ’s own functionally for sorting the output, and do not manipulate it any further. 작업 클러스터: k8s 실습 [user@console ~]$ kubectl c...