Skip to content

Instantly share code, notes, and snippets.

@terashim
Created July 14, 2019 21:42
Show Gist options
  • Save terashim/73013a86c4035863d7931aef51a18005 to your computer and use it in GitHub Desktop.
Save terashim/73013a86c4035863d7931aef51a18005 to your computer and use it in GitHub Desktop.
GKEでプリエンプティブインスタンスのクラスタを作成するgcloudコマンドの例
gcloud container clusters create experiment-cluster \
--machine-type=n1-standard-1 \
--preemptible \
--enable-autoscaling --max-nodes=3 --min-nodes=0
@terashim
Copy link
Author

terashim commented Jul 14, 2019

料金ページ から us-central1 リージョンの月額料金を抜粋:

マシンタイプ 仮想 CPU 数 メモリ 料金(米ドル) プリエンプティブ料金(米ドル)
n1-standard-1 1 3.75GB $24.2725 $7.30

マシンタイプ n1-standard-1 でノード数3とすると、非プリエンプティブなら月額73ドル、プリエンプティブなら月額22ドルになる。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment