분류 전체보기 88

Dump_4

1번Monitor the logs of pod foo and extract log lines corresponding to error unable-to-access-website. Write them to/opt/KULM00201/foo. 1. pod foo의 로그를 확인2. unable-to-access-websie에러가 발생하는 로그를 해당 파일로 작성해라. k logs -f foo | grep "unable-to-access-website" >> /opt/KULM00201/foo 2번Create a pod with image nginx called nginx and allow traffic on port 80 nginx라는 이름의 pod를 만들어라(--image=nginx --port=80) k ..

cka dumps 2025.04.28

CKA Part2

1. you can find an existing deployment frontend in production namespace, scale down the replicas to 2 and change the image to nginx:1.25 'production' 네임스페이스에 있는 frontend 디플로이먼트를 복제본 2개로 줄이고, 이미지 버전을 nginx:1.25로 변경하라. k scale deploy frontend --replicas=2 -n productionk set image deploy frontend nginx=nginx:1.25-n production 2. Auto scale the existing deployment frontend in production namespace a..

cka실습 2025.04.22

CKA Part1

1. Deploy a pod called nginxpod with image nginx in controlplane, Make sure pod is not scheduled in worker node nginx 이미지를 사용하는 nginxpod라는 파드를 만들고, 그 파드가 워커 노드(worker node)에 스케줄되지 않도록 설정하는 문제 nginx이미지 사용하는 포드 yaml 파일 생성controlplane:~$ k run nginxpod --image=nginx --dry-run=client -o yaml > 1.yamlvi 1.yamlyaml 파일에 nodeName 설정spec: nodeName: controlplane수정한 yaml파일을 통해 Pod 배포controlplane:~$ k app..

cka실습 2025.04.22