wonpick
devvon
wonpick
방문자🌱
오늘
어제
  • 분류 전체보기 (146)
    • 개발 (42)
      • Spark (7)
      • Hadoop (3)
      • ML&DL (4)
      • Paper Review (0)
      • ETC (24)
    • STUDY (77)
      • Data Engineering (54)
      • Cloud (4)
      • Algorithm (5)
      • SQL (10)
      • Toy Project (1)
    • Android (2)
    • Backend (14)
    • 인턴 (0)
    • 공모전 (0)

블로그 메뉴

  • 홈
  • 태그
  • 방명록

인기 글

태그

  • SQL
  • 인턴강연
  • 쿠버네티스
  • 자연어처리
  • 데이터엔지니어링
  • kodekloud
  • cka
  • Python
  • 최신 데이터 인프라 이해하기 #7
  • 최신 데이터 인프라 이해하기

최근 댓글

최근 글

티스토리

Designed By.hELLO
wonpick

devvon

[kodekloud] 03 Monitor Cluster Components 풀이
STUDY/Data Engineering

[kodekloud] 03 Monitor Cluster Components 풀이

2023. 1. 24. 16:14
Q1. We have deployed a few PODs running workloads. Inspect them.
Wait for the pods to be ready before proceeding to the next question.

 

 

Q2.Let us deploy metrics-server to monitor the PODs and Nodes. Pull the git repository for the deployment files.

Q3. Deploy the metrics-server by creating all the components downloaded. Run the kubectl create -f . command from within the downloaded repository.

이하는 답안인데 차이가 없는 걸까? 
답안대로 하니 이미 존재한다고 한다. 

 

Q4. It takes a few minutes for the metrics server to start gathering data.

 

Q5. Identify the node that consumes the most CPU.

파드의 CPU 사용량은 kubectl top pod 명령을 통해 확인할 수 있다.

 k  top node --sort-by='cpu' --no-headers | head -1

 

Q6. Identify the node that consumes the mostMemory.
k top node --sort-by='memory'

 

Q7. Identify the POD that consumes the most Memory.
k top pod --sort-by='memory'

팁) kubectl top pod -l {LABEL}

-l 옵션과 레이블명을 추가하여 특정 레이블을 가진 파드의 CPU 사용량을 조회할 수 있다.

 

Q8. Identify the POD that consumes the least CPU.
 kubectl top pod --sort-by='cpu' --no-headers | tail -1

'STUDY > Data Engineering' 카테고리의 다른 글

[kodekloud] 04 Rolling Updates and Rollbacks 풀이  (0) 2023.01.24
[kodekloud] 03 Managing Application Logs 풀이  (0) 2023.01.24
15. CKA udemy 강의 정리 - Section 8 [Storage]  (0) 2023.01.24
[kodekloud] 02 Multiple Schedulers 풀이 (😵‍💫)  (0) 2023.01.23
[kodekloud] 02 Scheduling : Static Pods 풀이 (😵‍💫)  (0) 2023.01.23
    wonpick
    wonpick

    티스토리툴바