gcloud run deploy
したらエラーが出た。
X Building and deploying new service... Uploading sources. Γ£ô Creating Container Repository... Γ£ô Uploading sources... . Building Container... . Creating Revision... . Routing traffic... . Setting IAM Policy... Deployment failed ERROR: (gcloud.run.deploy) FAILED_PRECONDITION: failed precondition: due to quota restrictions, cannot run builds in this region. Please contact support
以下の問題を踏んだようだ。
gcloud components update --version 455.0.0
とダウングレードしろと書いてあるが、これもエラーになる。
Beginning update. This process may take several minutes. ERROR: (gcloud.components.update) You cannot perform this action because the Google Cloud CLI component manager is disabled for this installation. You can run the following command to achieve the same result for this installation:
apt で入れているのが良くないようで、以下に書いてあるダウングレード手順が必要だった。
sudo apt-get update && sudo apt-get install google-cloud-cli=455.0.0-0
ダウングレードをしたら、普通にデプロイできた。