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
sai
October 08, 2019
Technology
410
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
GDG Cloud Cloud Run
sai
October 08, 2019
More Decks by sai
See All by sai
GCPUG Sendai Vol2 GKE 入門
saisai
1
400
ゼロから初めたGCP.pdf
saisai
0
520
LaravelとVue.jsのSPAな関係
saisai
0
480
Other Decks in Technology
See All in Technology
AIにブラウザを触らせて、E2EテストをPlaywrightで書く
koji_kawamura
0
350
VLMで2.3万枚のPyCon JP写真を検索!
terapyon
1
260
8bit CPU 2026
koba789
6
2.6k
自宅NWにISR4331を導入してみた話
okaits
0
120
Kiro入門|仕様駆動開発で変わるAI時代の開発スタイル
cmkudo
0
320
AIのためのEthernet技術動向 (SerDes)
markunet
1
300
dbt in Microsoft Fabric
ryomaru0825
0
120
Android skills に学ぶ
kokiko
0
150
Sets in Go
ramalho
1
1.2k
[potatotips #96] Give Your AI Agent the Flutter Playbook
korodroid
0
140
Kiro Crew で始める マルチエージェント開発
miu_crescent
PRO
0
160
会社紹介資料 / Sansan Company Profile
sansan33
PRO
24
430k
Featured
See All Featured
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
1.5k
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
480
The agentic SEO stack - context over prompts
schlessera
0
870
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
1
1.5k
Facilitating Awesome Meetings
lara
57
7.1k
Scaling GitHub
holman
464
140k
Speed Design
sergeychernyshev
33
2k
Making Projects Easy
brettharned
120
6.7k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
3k
Heart Work Chapter 1 - Part 1
lfama
PRO
8
36k
Skip the Path - Find Your Career Trail
mkilby
1
190
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
28
3.6k
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