기출 문제 및 Tips
[1] ETCD Backup & Restore
❓ETCD Backup & Restore 작업 시스템: k8s-master First, create a snapshot of the existing etcd ins...
[2] Pod 생성하기
❓Pod 생성하기 클러스터: k8s Create a new namespace and create a pod in the namespace. namespace na...
[3] Static Pod 생성하기
일반적으로 kubectl 명령어를 실행하면 그 명령어가 API 서버에 전달되어 명령어 실행이 이루어 지는데 Static Pod의 경우에는 API 서버에 명령어가 전달되지 않는...
[4] Multi-Container Pod 생성하기
❓Multi-Container Pod 생성하기 Create pod 작업 클러스터: hk8s Create a pod named lab004 with 3 contai...
[5] Side-car Container Pod 실행하기
하나의 Pod안에 nginx 어플리케이션 컨테이너가 동작하고 있다. 이 컨테이너는 varlog라는 이름을 가지는 볼륨을 마운트해서 사용하고 있으며 이 볼륨에 access.l...
[6] Deployment & Pod Scale
1. Pod Scale out ❓Pod Scale Out Expand the number of running pods in “eshop-order” to 5. 작...
[7] Rolling Update & Rollback
❓Rolling Update Create a deployment as follows: 작업 클러스터: k8s TASK: name: nginx-app Usi...
[8] NodeSelector
NodeSelector란? 특정 Application Pod를 특정 Node에 실행시켜달라는 것 ❓Schedule a pod 작업 클러스터: k8s Schedule...
[9] Node 관리
Node 관련된 명령어 정리 # 현재 시스템의 노드 정보 확인하기 kubectl get nodes # 더 자세한 정보 확인 kubectl get nodes -o ...
[10] Node 정보 수집
❓Check Ready Nodes Check to see how many nodes are ready (not including nodes tainted NoSchedu...
[11] Deployment & Expose the Service
❓Deploy and Service Reconfigure the existing deployment front-end and add a port specification...
[12] Pod Log 추출
❓Record the extracted log lines Monitor the logs of pod custom-app and: Extract log lines corr...
[13] CPU 사용량이 높은 Pod 검색
❓Find a Pod that consumes a lot of CPU From the pod label name=overloaded-cpu, find pods runni...
[14] init 컨테이너를 포함한 Pod 운영
init 컨테이너에 대해 알아보기 docs에서 init container 검색 초기화 컨테이너 init 컨테이너란 초기화 컨테이너는 파드의 앱 컨테이너들이 실행되기 전...
[15] NodePort 서비스 생성
NodePort란? 클러스터 외부의 사용자가 클러스터 내에 위치한 서비스에 접근하도록 할 수 있게 하는 서비스타입 ❓NodePort Service Create the...
[16] ConfigMap 운영
ConfigMap이란? ConfigMap은 애플리케이션 설정 데이터를 관리하는 데 사용된다. 애플리케이션 구성, 환경 변수, 설정 파일 등과 같은 설정 정보를 저장하고...
[17] Secret 운영
❓Secret을 생성 후 Pod에 전달 Create a kubernetes secret and expose using a file in the pod. 작업 클러스터:...
[18] Ingress 구성
Ingress란? 인그레스는 클러스터 외부에서 클러스터 내부 서비스로 HTTP와 HTTPS 경로를 노출한다. 트래픽 라우팅은 인그레스 리소스에 정의된 규칙에 의해 컨트롤된...
[19] Persistent Volume 생성
Persistent Volume이란 클러스터 내의 지속적인 데이터 저장을 위한 추상화된 스토리지를 제공한다. 클러스터 외부 스토리지 리소스를 클러스터 내부에서 사용할 수 있...
[20] Persistent Volume Claim을 사용하는 Pod 운영
❓Application with Persistent Volume Claim Create a new PersistentVolumeClaim Name: app-volu...
[21] Check Resource Information
❓Check Resource Information List all PVs sorted by name saving the full kubectl output to /var...
[22] Kubernetes Upgrade
❓Cluster Upgrade - only Master upgrade system: k8s-master Given an existing Kubernetes cluste...
[23] Kubernetes Troubleshooting (1)
❓Not Ready 상태의 노드 활성화 A Kubernetes worker node, named hk8s-w2 is in state NotReady. Investiga...
[24] Kubernetes Troubleshooting (2)
❓Not Ready 상태의 노드 활성화 A Kubernetes worker node, named hk8s-w2 is in state NotReady. Investiga...
[25] User Role Binding
❓Configuring User API Authentication TASK: Create the kubeconfig named ckauser username:...
[26] User Cluster Role Binding
❓Configuring User API Authentication Create a new ClusterRole named app-clusterrole, which onl...
[27] ServiceAccount Role Binding
❓Service Account, Role and Role Binding Create the ServiceAccount named pod-access in a new na...
[28] ServiceAccount Cluster Role Binding
❓ClusterRole & ClusterRoleBinding 구성 Create a new ClusterRole named deployment-clusterrole, wh...
[29] Kube-DNS
Kube-DNS란? Kube-DNS는 도메인 이름을 IP 주소로 해석하는 역할을 한다. 이를 통해 K8s 클러스터 내부의 다른 리소스(서비스, Pod 등)를 도메인 이름을 ...
[30] Network Policy
쉽게 말하면 Pod에 대한 방화벽을 설정해주는 것이다. ❓Network Policy with Namespaces Create a new Network Policy na...