ahmetb / cloud-run-static-outbound-ip

[DEPRECATED] Sample code for Cloud Run to use a static IP for outgoing requests via a SSH tunnel over a GCE instance
https://cloud.google.com/run/docs/configuring/static-outbound-ip
Apache License 2.0
29 stars 3 forks source link

Failed to start and then listen on the port defined by the PORT environment variable #3

Closed kubosuke closed 4 years ago

kubosuke commented 4 years ago
gcloud run deploy sample-tunnel --set-env-vars "GCE_IP=35.225.211.112" --platform managed --region us-central1 --allow-unauthenticated --image=gcr.io/myproject/sample-tunnel

result:

Deploying container to Cloud Run service [sample-tunnel] in project [myproject] region [us-central1]
X Deploying... Cloud Run error: Container failed to start. Failed to start and then listen on the port defined by the PORT environment variable. Logs for this revision might contain more information.    
  X Creating Revision... Cloud Run error: Container failed to start. Failed to start and then listen on the port defined by the PORT environment variable. Logs for this revision might contain more inform
  ation.                                                                                                                                                                                                   
  . Routing traffic...                                                                                                                                                                                     
  ✓ Setting IAM Policy...                                                                                                                                                                                  
Deployment failed                                                                                                                                                                                          
ERROR: (gcloud.run.deploy) Cloud Run error: Container failed to start. Failed to start and then listen on the port defined by the PORT environment variable. Logs for this revision might contain more information.