Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Cannot connect to pubsub on GKE pods

Hey, I'm facing a weird issue with my pods! I have a vpc native cluster, with all configuration settle! I have workload identity configured( with GKE_METADATA applied on each node). 

I'm able to connect with postgres without any problem, configuring all service account roles permission, but with pubsub I'm unable! 

fail to publish message rpc error: code │ = Unavailable desc = connection error: desc = \"transport: authentication handshake failed: tls: failed to verify certificate: x509: certificate signed by unknown authority

Doesn't matter what kind of operation I try, publish a message or consume it I'm receiving that kind of error. Do I miss something on my configuration? I dont remember needing to apply any certificate authority on my side.

1 2 1,124
2 REPLIES 2

Hi @Kaueh 

Welcome to Google Cloud Community!

Here are few steps you may want to verify with the issue you are facing:

I hope this information is helpful.

If you need further assistance, you can always file a ticket on our support team.

I have solved the issue! First of all, thanks for the support on that! The main problem was not on any on my setup on both cluster or service account. Actually my docker image is based on scratch, which contains nothing, so It wasn't containing all the certificates needed to execute.

Top Labels in this Space