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)

블로그 메뉴

  • 홈
  • 태그
  • 방명록

인기 글

태그

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

최근 댓글

최근 글

티스토리

Designed By.hELLO
wonpick

devvon

[kodekloud] 02 Scheduling : Taints and Tolerations 풀이
STUDY/Data Engineering

[kodekloud] 02 Scheduling : Taints and Tolerations 풀이

2023. 1. 23. 00:43
Q1. How many nodes exist on the system?
alias k=kubectl; k get nodes

Q2.Do any taints exist on node01 node?
kubectl describe node node01 | grep -i taints
# i 옵션 : 특정 문자열을 대소문자 구분 없이 검색

Q3. Create a taint on node01 with key of spray, value of mortein and effect of NoSchedule
 k taint node node01 spray=mortein:NoSchedule
 #kubectl taint NODE NAME KEY_1=VAL_1:TAINT_EFFECT_1 ... KEY_N=VAL_N:TAINT_EFFECT_N [options]

이전에는 none이 었던 taint가 변경된것을 확인할 수 있다. 

Q4. Create a new pod with the nginx image and pod name as mosquito.
k run mosquito --image=nginx

명령형 접근법
선언형 접근법

Q5. What is the state of the POD?

Q6. Why do you think the pod is in a pending state?
k describe pods

POD Mosquito cannot tolerate taint Mortein

Q7. Create another pod named bee with the nginx image, which has a toleration set to the taint mortein.
k run bee --image=nginx --dry-run=client -o yaml > bee.yaml #파일 생성
k create -f bee.yaml

--
 tolerations:
  - key: spray
    value: mortein
    effect: NoSchedule
    operator: Equal

 

Q8. Notice the bee pod was scheduled on node node01 despite the taint.

 

Q9. Do you see any taints on controlplane node?
k describe  node controlplane

Q10. Remove the taint on controlplane, which currently has the taint effect of NoSchedule.
kubectl taint nodes controlplane node-role.kubernetes.io/control-plane:NoSchedule-
Q11. What is the state of the pod mosquito on now?

running

Q12. Which node is the POD mosquito on now?

controlplane

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

[kodekloud] 02 Scheduling : Resource Limits 풀이  (0) 2023.01.23
[kodekloud] 02 Scheduling : Node Affinity 풀이  (0) 2023.01.23
[kodekloud] 02 Scheduling : Labels and Selectors 풀이  (0) 2023.01.22
[kodekloud] 02 Scheduling : Manual Scheduling 풀이  (0) 2023.01.21
[kodekloud] 01 Core Concepts : Imperative-Commands 풀이  (0) 2023.01.21
    wonpick
    wonpick

    티스토리툴바