0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

GKEでnodeを作る時ipたくさん取られた

Posted at

TLDR

Reducing the maximum number of Pods per node also lets you create smaller clusters that require fewer IP addresses.

実はクラスタにはdefault-max-pods-per-nodeというデフォルトパラメーターが付いていて、110に設定されています。nodeを設定する時 max-pods-per-nodeを設定して上書きしないと、nodeが作られる旅に/24のCIDRが振り分けられ(node上110のpodがいなくても)、たとえ/21のCIDRをsubnetに振っても8つのnodeしか作れません。

結論

  • クラスターのdefault-max-pods-per-nodeを小さくし
  • nodeはスペックごとにmax-pods-per-nodeを設定しましょう
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?