Search code examples
httpsgoogle-cloud-platformgoogle-kubernetes-enginegoogle-cloud-rungoogle-anthos

How do I enable HTTPS on a Cloud Run for Anthos on Google Cloud cluster?


I recently started fiddling with Cloud Run for Anthos on GoogleCloud and I just can't enable HTTPS access. I've followed every step in the docs but it still doesn't work. I have a custom .dev domain which I configured through these steps and everything is fine with HTTP but HTTPS still says connection refused

curl http://api.default.customdomain.dev - works fine

but curl https://api.default.customdomain.dev - says:

curl: (7) Failed to connect to api.default.customdomain.dev port 443: Connection refused

I'm pretty sure there's something not specified in the docs, it happens a lot with GCP docs. Has anyone else struggled with this and might be able to help? Thanks!

EDIT: It was actually my fault - when creating the cert/private key secret I provided default for the --namespace value instead of gke-system. So, yeah... it's fixed now.


Solution

  • It was actually my fault - when creating the cert/private key secret I provided default for the --namespace value instead of gke-system. So, yeah... it's fixed now.