강의

멘토링

로드맵

Inflearn Community Q&A

taekou's profile image
taekou

asked

The Trend is Kubernetes (Beginner to Intermediate Edition)

DaemonSet, Job, CronJob - Practice

실습 하다가 에러가 발생해서 문의 드립니다.

Written on

·

277

1

label을 바꾸려고 하니 오류가 발생하는데 어떤 부분을 수정해야 하는지 모르겠습니다.

root@master:~# kubectl label nodes work02 os=centos

error: 'os' already has a value (ubuntu), and --overwrite is false

labeldockerkubernetes

Answer 1

1

taekou님의 프로필 이미지
taekou
Questioner

kubectl label nodes work02 os- 로 삭제하고 다시 설정해 주는건 이상없이 됩니다.

원래 이렇게 하는게 맞는건지요?

1pro님의 프로필 이미지
1pro
Instructor

네 맞습니다

라벨을 달때 키가 중복되면 안되요.

삭제하고 다시만들거나 --overwrite true옵션들 주면됩니다

taekou's profile image
taekou

asked

Ask a question