Cloud Run - Google Cloud

最終更新日: 2026-08-27

TOP(About this memo)) > 一覧(Google Cloud) > Cloud Run

Cloud RunとCloud Run functionsの使い分け

Cloud Run contract

既知の問題

コンテナのライフサイクル

自動スケール

タイムアウト

サービスのアクセスを無効化する

サービスの再起動

モニタリング・ロギング

サービスアカウント

Cloud SQLとの接続

環境変数・シークレット

デプロイ

ベースイメージの選択

distroless

Alpineについて

Cloud Run上でのFirebase Admin SDKの実行について

level=info msg="token verify failed. ID token has invalid 'aud' (audience) claim; expected \"[EXPECTED_PROJECT_ID]\" but got \"[ACTUAL_PROJECT_ID]\"; make sure the ID token comes from the same Firebase project as the credential used to authenticate this SDK; see https://firebase.google.com/docs/auth/admin/verify-id-tokens for details on how to retrieve a valid ID token"

プログラム側で必要なこと

クライアントIPアドレスの取得

その他の参考

比較的新しい機能(執筆時点)


ジョブ(Cloud Run jobs)

概要

再試行とチェックポイントのベストプラクティス

Cloud Run jobs / Cloud Run functions / Cloud Batchの使い分け


サービス(Cloud Run services)

リビジョン、タグの使い方

アクセスURL

トラフィックの割当て

タグ付けと–no-traffic

gcloud run deploy [SERVICE] --image [IMAGE_URL] --no-traffic --tag [TAG]

サービスとリビジョンの確認・削除

gcloud run services list
gcloud run services describe [SERVICE]
gcloud run revisions list --service [SERVICE]
gcloud run revisions describe [REVISION]
gcloud run revisions delete [REVISION]
gcloud run services delete [SERVICE]

(?) コンソールの「最新リビジョンのURL」

–quiet

YAMLで構成をexport / replaceする方法

gcloud run services describe [SERVICE] --format export > service.yaml
gcloud run services replace service.yaml

ドメイン

ドメインの選択肢