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

2/4/2020

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.

-- Ionut Achim
google-anthos
google-cloud-platform
google-cloud-run
google-kubernetes-engine
https

1 Answer

2/14/2020

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.

-- Ionut Achim
Source: StackOverflow