VOOZH about

URL: https://qiita.com/loftkun/items/41ecde082778254de79a

⇱ 悲報 minikubeのCPUコア割り当てのdefault値は2コア #kubernetes - Qiita


👁 Image
3

Go to list of users who liked

1

Share on X(Twitter)

Share on Facebook

Add to Hatena Bookmark

More than 5 years have passed since last update.

@loftkun(ロフトくん)

悲報 minikubeのCPUコア割り当てのdefault値は2コア

3
Last updated at Posted at 2019-01-08

minikubeのメモリ割り当てのdefault値は2GBに続く悲報です。

以下のようにdefaultでは2コアしか割り当てられていません。
どれだけコア数の多いCPUを積んだマシンでもdefaultでは2コアしか使われません。

$ minikube start -h
( : 略 )
 --cpus int Number of CPUs allocated to the minikube VM (default 2)
( : 略 )

CPUリソースが足りない場合、Insufficient cpu.という理由でpodのstatuspendingとなりスケジューリングされません。

以下のようにして変更できます。
変更後はいったんminikube deleteが必要なようです。

$ # 12コアを設定する
$ minikube config set cpus 12
These changes will take effect upon a minikube delete and then a minikube start
$ # 設定の確認
$ minikube config get cpus
12
$ minikube config view
- cpus: 12
$ # 泣く泣くクラスタを削除してから
$ minikube delete
$ # 新たな気持ちでクラスタを開始する、もろもろ再構築しましょう。
$ minikube start
3

Go to list of users who liked

1
0

Go to list of comments

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
3

Go to list of users who liked

1