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)

블로그 메뉴

  • 홈
  • 태그
  • 방명록

인기 글

태그

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

최근 댓글

최근 글

티스토리

Designed By.hELLO
wonpick

devvon

[kodekloud] 02 Scheduling : Node Affinity 풀이
STUDY/Data Engineering

[kodekloud] 02 Scheduling : Node Affinity 풀이

2023. 1. 23. 01:43
Q1. How many Labels exist on node node01?

 

Q2.What is the value set to the label key beta.kubernetes.io/arch on node01?

1번 명령어를 통해 value가 amd64임을 알 수 있음

beta.kubernetes.io/arch=amd64

 

Q3. Apply a label color=blue to node node01
 k label node node01 color=blue

 

Q4. Create a new deployment named blue with the nginx image and 3 replicas.
k create deployment blue --image=nginx --replicas=3

 

Q5. Which nodes can the pods for the blue deployment be placed on?

both of them

Q6. Set Node Affinity to the deployment to place the pods on node01 only.

드래그한 부분만 수정했을때는 왜 edited가 안되었는지

Q7. Which nodes are the pods placed on now?
k get pods -o wide

node01

Q8. Create a new deployment named red with the nginx image and 2 replicas, and ensure it gets placed on the controlplane node only. Use the label key - node-role.kubernetes.io/control-plane - which is already set on the controlplane node.
kubectl create deployment red --image=nginx --replicas=2 --dry-run=client -o yaml > deployment-red.yaml
vi deployment-red.yaml
k apply -f deployment-red.yaml

 

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

[kodekloud] 02 Scheduling : Daemonsets 풀이  (0) 2023.01.23
[kodekloud] 02 Scheduling : Resource Limits 풀이  (0) 2023.01.23
[kodekloud] 02 Scheduling : Taints and Tolerations 풀이  (0) 2023.01.23
[kodekloud] 02 Scheduling : Labels and Selectors 풀이  (0) 2023.01.22
[kodekloud] 02 Scheduling : Manual Scheduling 풀이  (0) 2023.01.21
    wonpick
    wonpick

    티스토리툴바