GCP MarketplaceでGitLabをGKEにデプロイ
7/18のアップデートでMarketplaceから様々なコンテナアプリケーションをGKEにもデプロイできるようになったらしいので試してみます。
GKEの画面の左のパネルからMarketplaceを選択することでKubernetesアプリ選択画面を開くことができます。
デプロイできるアプリケーションのラインナップはこんな感じ。
- Aerospike Enterprise Edition
- flash-optimized, in-memory KVS
- Aqua Security
- cloud native container platform
- Cassandra
- CloudBees Core
- CI/CD Automation Engine
- Couchbase Autonomous
- Couchbase management
- CyberArk Conjur Open Source
- Enterprise class secrets management system
- Datastax
- Cassandra based database
- DivvyCloud Enterprise
- guard rails for cloud infrastructure
- Elastic GKE Logging
- Elasticsearch
- Elastifile
- k8s volume provider
- GitLab
- Grafana
- InfluxDB
- Jenkins
- Kasten K10
- Data management platform for stateful application on k8s
- Memcached
- neo4j
- nginx
- Prometheus & Grafana
- RabbitMQ
- Seldon Core
- Spark Operator
- Wordpress
ぱっと見興味を惹かれたのはKasten, Elastifile, Seldonとかですが、GitLab meetupが明日開催されるということもあり今回はGitLab環境を用意してみます。
構成を押してクラスタを選択(無ければ作成)し、アプリインスタンス名とベースドメインを入力、デプロイを押下します。
10分弱くらいでデプロイできました。
https://gitlab.[base domain]/ で接続できます。(DNS, TLS certificate設定とかは別途必要です)
rootユーザのパスワードはkubectlコマンドで取得します。
$ kubectl get secret \ --namespace default \ gitlab-1-gitlab-initial-root-password \ -ojsonpath={.data.password} \ | base64 --decode
料金調査
Understanding Billing for GCP Marketplace | GCP Marketplace | Google Cloud
商用ソリューションを購入した場合は、ソフトウェア使用量 + Google Cloud Platformリソース使用量となるみたいです。ソフトウェア使用料は、Google Cloud Platform請求書に個別の広告申込情報として表示されるとのこと。