Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
DevOpsサンプルアプリをGitLabからGKEへデプロイしてみた
Search
Yasunari Tanaka
June 09, 2018
Technology
1
280
DevOpsサンプルアプリをGitLabからGKEへデプロイしてみた
2018.06.09 GCPUG Hiroshima #4 のLTスライドです
Yasunari Tanaka
June 09, 2018
Tweet
Share
More Decks by Yasunari Tanaka
See All by Yasunari Tanaka
MicroProfile OpenTracing with Helidon
yasu7ri
2
200
Serverlessで行ってみよ~
yasu7ri
0
1.2k
知識ゼロからRancher2.0に触れてみた
yasu7ri
1
450
CloudGarageでServerlessだ!
yasu7ri
3
4.6k
Kubernetes超入門 with java
yasu7ri
1
160
Other Decks in Technology
See All in Technology
Deep Research と NotebookLM を使い倒す!レガシーリプレイスの技術選定と学習コスト削減術
tet0h
0
2.8k
5年間のFintech × Rails実践に学ぶ - 基本に忠実な運用で築く高信頼性システム / 5 Years Fintech Rails Retrospective
ohbarye
9
3.4k
BtoBプロダクト開発の深層
16bitidol
0
130
Sidekiq その前に:Webアプリケーションにおける非同期ジョブ設計原則
morihirok
17
6.2k
GopherCon Tour 概略
logica0419
2
160
AI Agentと MCP Serverで実現する iOSアプリの 自動テスト作成の効率化
spiderplus_cb
0
280
KMP の Swift export
kokihirokawa
0
110
Streamlit は社内ツールだけじゃない!PoC の速さで実現する'商用品質'の分析 SaaS アーキテクチャ
kdash
2
1k
Optuna DashboardにおけるPLaMo2連携機能の紹介 / PFN LLM セミナー
pfn
PRO
1
670
いまさら聞けない ABテスト入門
skmr2348
0
170
研究開発部メンバーの働き⽅ / Sansan R&D Profile
sansan33
PRO
3
20k
about #74462 go/token#FileSet
tomtwinkle
1
260
Featured
See All Featured
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
23
1.5k
Build your cross-platform service in a week with App Engine
jlugia
231
18k
Building Flexible Design Systems
yeseniaperezcruz
329
39k
The Art of Programming - Codeland 2020
erikaheidi
56
14k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
16k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
285
14k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.5k
Building an army of robots
kneath
306
46k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.5k
[RailsConf 2023] Rails as a piece of cake
palkan
57
5.9k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
657
61k
Into the Great Unknown - MozCon
thekraken
40
2.1k
Transcript
0 DevOpsサンプルアプリを GitLabからGKEへデプロイしてみた 2018/06/09(土) GCPUG Hiroshima #4 YasunariTanaka(@7richi)
1 自己紹介 氏名: Yasunari Tanaka 属性: Software Engineer コミュニティ活動: オープンセミナー広島
Rancher JP アジャイル広島 広島Javaユーザグループ @7richi
2 – Google Cloud Platform(GCP)でホストされているKubernetesクラスタ をGitLabプロジェクトに接続できる。そこで、継続的インテグレーショ ンのジョブを実行し、継続的デプロイのパイプラインを設定ことができ る。GitLabとGKEの統合により、開発者は、Kubernetesがどのようにクラ スタを管理しているかの詳細をすべて理解しなくても、GCP上でマネー ジドデプロイ環境を簡単にセットアップし設定することができるように
なる。 GitLabはGoogle Kubernetes Engineを完全に管理可能に
3 – Google Cloud Platformで500ドルの無料クレジットを獲得 – Google Cloud Platformの新しいアカウントはすべて、登録時に300ドルのクレ ジットを受け取ります。
GitLabは、Googleと提携して、GitLabのGKE統合を 開始するために新しいGCPアカウントの追加で200ドルを提供することができ ます。 GitLabとGCPを連携させて500ドル分のクレジットをゲットしよう!
4 – デプロイしたレポジトリを選択 Deploy from GitLab to GKE
5 – Operations -> Kubernetesを選択し「Add Kubernets cluster」 で Kubernets cluster
を追加していく Deploy from GitLab to GKE
6 – どのKubernetes clusterと統合するか選択する – もちろんGKEを選択する Deploy from GitLab to
GKE
7 – GKGへKubernetes clusterを作成するを選択してGoogleへサインイン Deploy from GitLab to GKE
8 – 作するKubernetes clusterの設定に関していくつか記入 – Kubernetes cluster 名を記入 – どのGCP
プロジェクトへ作成するか選択 – Zone、Node数、Machine typeはデフォルトのままを使用 Deploy from GitLab to GKE
9 – Kubernetes cluster作成中(5分くらい) Deploy from GitLab to GKE
10 – Kubernetes cluster完了で~す! Deploy from GitLab to GKE
11 – GKE側はどうなった? – Kubernetes clusterが作成されている – Nodeも3つ Deploy from
GitLab to GKE
12 – Kubernetes cluster にCI/CDを行う為のApplicationのインストールを行う – Helm Tiller, Ingress, Prometheus,
GitLab Runner Deploy from GitLab to GKE
13 – CI/CDの設定 – Auto DevOpsを有効にしてDomainを入力する Deploy from GitLab to
GKE
14 – CI/CDの設定 – Auto DevOpsを有効にしてDomainを入力する Deploy from GitLab to
GKE
15 – Pipelinesを見るとビルドが始まっている! Deploy from GitLab to GKE
16 – 完了! Deploy from GitLab to GKE
17 – GKE側を見るとデプロイされている Deploy from GitLab to GKE
18 – GitLabとGKEを組み合わせて、GCP上でマネージドデプロイ環境を簡単に セットアップし自動のCI/CD環境を構築してみよう – GitLabからでもGKEを操作できるけど、 Runcher2.0 でも出来るよね。 GitLabもRuncher2.0の統合の違いってどうなんだろうか。 気になる人はこちらへ、そのうち広島でも。。。
まとめ
19 – 不合格通知 (追加で200ドルのクレジットが欲しい人生だった) ちなみに200ドルは、 これかな~
20 ありがとうございました