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
GDG Cloud Cloud Run
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
saisai
October 08, 2019
Technology
0
380
GDG Cloud Cloud Run
saisai
October 08, 2019
Tweet
Share
More Decks by saisai
See All by saisai
GCPUG Sendai Vol2 GKE 入門
saisai
1
390
ゼロから初めたGCP.pdf
saisai
0
510
LaravelとVue.jsのSPAな関係
saisai
0
440
Other Decks in Technology
See All in Technology
Azure Durable Functions で作った NL2SQL Agent の精度向上に取り組んだ話/jat08
thara0402
0
150
Data Hubグループ 紹介資料
sansan33
PRO
0
2.7k
ファインディの横断SREがTakumi byGMOと取り組む、セキュリティと開発スピードの両立
rvirus0817
1
1.2k
Tebiki Engineering Team Deck
tebiki
0
24k
茨城の思い出を振り返る ~CDKのセキュリティを添えて~ / 20260201 Mitsutoshi Matsuo
shift_evolve
PRO
1
190
(金融庁共催)第4回金融データ活用チャレンジ勉強会資料
takumimukaiyama
0
130
顧客との商談議事録をみんなで読んで顧客解像度を上げよう
shibayu36
0
180
OCI Database Management サービス詳細
oracle4engineer
PRO
1
7.3k
FinTech SREのAWSサービス活用/Leveraging AWS Services in FinTech SRE
maaaato
0
120
GitHub Issue Templates + Coding Agentで簡単みんなでIaC/Easy IaC for Everyone with GitHub Issue Templates + Coding Agent
aeonpeople
1
180
Kiro IDEのドキュメントを全部読んだので地味だけどちょっと嬉しい機能を紹介する
khmoryz
0
160
What happened to RubyGems and what can we learn?
mikemcquaid
0
250
Featured
See All Featured
How to build a perfect <img>
jonoalderson
1
4.9k
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
430
The Power of CSS Pseudo Elements
geoffreycrofte
80
6.1k
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.3k
A Tale of Four Properties
chriscoyier
162
24k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3.1k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
128
55k
First, design no harm
axbom
PRO
2
1.1k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.4k
Imperfection Machines: The Place of Print at Facebook
scottboms
269
14k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
Believing is Seeing
oripsolob
1
53
Transcript
GDG Cloud Sendai Cloud Run 2019.10.8 saisai
Cloud Runとは 1.HTTPリクエストをリッスン 2.Knativeベース 3.ステートレスなコンテナサービス 4.GCPのカテゴリとしてはサーバーレスの一つ 2 Cloud Functions App
Engine Cloud Run サーバーレスサービス
何がいいのか HTTPリクエストをさばくコンテナがあればそのままデプロイ可能、 オートスケール、GKEも対応 knativeベースなのでマルチクラウド対応可能 3
ユースケース パブリック Web App mBaas 4 プライベート Worker micro Service
考慮すべきところ VPCに対応していない オートスケールされることを考慮 0.0.0.0かつPORT環境変数で設定されたポートでリッスン (現在は8080のみ) リクエストを受けてから4分以内に応答が必要 Global IPが不定 参考:制約事項 https://cloud.google.com/run/docs/reference/container-contract
5
試してみる1 6 コマンドからやってみよう QuickStart https://bit.ly/35fHyds 構築できたら 1.endpointにアクセスしてログを確認 2.yamlをみてみよう
試してみる2 7 コンソール画面からやってみよう 1で作成したイメージを指定して「認証あり」でサービ スをつくってみる 構築できたら 1.endpointにアクセスして403になること 2.ヘッダーに認証トークンを付与してアクセス $curl -H
"Authorization: Bearer $(gcloud auth print-identity-token)" ENDPOINT
最後に 一緒にやっていく方を大募集します! 初心者大歓迎(触ったこと無いけど興味あるとかでも可) 8