[k8s] accepts at most 1 arg(s), received 3 To see the stack trace of this error execute with --v=5 or higher

2022. 9. 13. 01:16ใ†System ์ž‘์—…์‹ค/DevOps

728x90
๋ฐ˜์‘ํ˜•

 

๐Ÿ‘ท‍โ™‚๏ธ ์ž‘์—… ์ค‘์ธ ๋‚ด์šฉ


ํ˜„์žฌ ์ฃผ๋‹ˆํ•˜๋ž‘์€ ์ด ๋ฌธ์ œ๋ฅผ CentOS7์— Kubernets๋ฅผ ์„ค์น˜ํ•˜๋ฉด์„œ ๋งŒ๋‚œ ๋ฌธ์ œ ์ž…๋‹ˆ๋‹ค.

์„ค์น˜ ๊ด€๋ จ ๋‚ด์šฉ์€ ์ด ๊ณณ์—์„œ ํ™•์ธํ•˜์‹ค ์ˆ˜ ์žˆ์–ด์š”.

 

 

 

โš ๏ธ ๋ฌธ์ œ ๋ฐœ์ƒ!

728x90

 


Master์—์„œ ์•„๋ž˜ ๋ช…๋ น์–ด๋ฅผ ์‹คํ–‰ํ–ˆ์„ ๋•Œ, ์œ„์— ๋ช…๋ น์–ด๊ฐ€ ๋‚˜์™€์š”.
๊ทธ ๋ช…๋ น์–ด๋ฅผ Woker Node์— ์ž…๋ ฅ์„ ํ•ด์ฃผ๋ฉด ๋ฉ๋‹ˆ๋‹ค.

๋ฐ˜์‘ํ˜•


๋งŒ์•ฝ ์œ„์— ๋ช…๋ น์–ด๋ฅผ ์ž…๋ ฅํ–ˆ์„ ๋•Œ, ๋ฌธ์ œ๊ฐ€ ๋ฐœ์ƒํ•œ๋‹ค๋ฉด ์•„๋ž˜ ๋ช…๋ น์–ด๋ฅผ ์ž…๋ ฅํ•ด ์ฃผ์„ธ์š”.

 

 

 

๐Ÿป ๋ฌธ์ œ ํ•ด๊ฒฐ!

Master์™€ Node ๋ชจ๋‘ ์ž…๋ ฅํ•˜๊ณ , ๋‹ค์‹œ kubeadm init --pod ... ๋ช…๋ น์–ด๋ฅผ ์ด์šฉํ•ด์„œ ๋ช…๋ น์–ด๋ฅผ ๋ฐ›์•„ Node์— ์ž…๋ ฅํ•ด ์ฃผ์–ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.


kubeadm reset




Node Woker์—์„œ ๊ทธ๋ ‡๊ฒŒ ํ•ด์คฌ์œผ๋‚˜, ์œ„์™€ ๊ฐ™์ด ๋ฌธ์ œ๊ฐ€ ๋ฐœ์ƒํ•œ๋‹ค๋ฉด hostname์ด ๋งž์ง€ ์•Š์•„์„œ ๋ฐœ์ƒํ•˜๋Š” ๋ฌธ์ œ์—์š”.

#Cent OS 7
hostnamectl set-hostname {hostname} --static


์œ„ ๋ช…๋ น์–ด๋กœ Hostname์„ ๋ณ€๊ฒฝํ•˜๊ณ , ์žฌ๋ถ€ํŒ…์„ ํ•ด์ฃผ์…”์•ผ ํ•ด์š”!

 

 

 

 

 

 

 

 

 

 

728x90
๋ฐ˜์‘ํ˜•