๐Ÿ˜ฑ์ฟ ๋ฒ„๋„คํ‹ฐ์Šค ์Šค์ผ€์ค„๋ง

๊น€์„ฑ์ธยท2023๋…„ 10์›” 19์ผ
0

[DevOps] ๐ŸณDocker & Kubernetes

๋ชฉ๋ก ๋ณด๊ธฐ
39/62

์ˆ˜๋™ ์Šค์ผ€์ค„๋ง

ํŠน์ • ๋…ธ๋“œ์— ํฌ๋“œ๋ฅผ ์‹คํ–‰ํ•˜๋„๋ก ์ œํ•œ

  • GPU์„œ๋น„์Šค, SSD ๋…ธ๋“œ ์ง€์ • ๋“ฑ์— ์‚ฌ์šฉ

nodeName

apiVersion: v1
kind: Pod
metadata:
  name: nginx
spec:
  containers:
  - name: nginx
    image: nginx
  nodeName: kube-01 # ํ•ด๋‹น ๋…ธ๋“œ์— ๊ฐ€์„œ ๋ฌด์กฐ๊ฑด ์Šค์ผ€์ค„๋ง ๋จ

nodeSelector

kubectl label node <node_name> gpu=true : ๋…ธ๋“œ์— nodeSelector ์ง€์ •

apiVersion: v1
kind: Pod
metadata:
  name: nginx
spec:
  containers:
  - name: nginx
    image: nginx
  nodeSelector: # ์ง€์ •ํ•œ nodeSelector์—์„œ ์‹คํ–‰ํ•˜๋„๋ก ์„ค์ •
     gpu: "true"

๋ฉ€ํ‹ฐํ”Œ ์Šค์ผ€์ค„๋Ÿฌ

https://kubernetes.io/docs/tasks/extend-kubernetes/configure-multiple-schedulers/

0๊ฐœ์˜ ๋Œ“๊ธ€