This message was deleted.
# general
s
This message was deleted.
b
hey there! can you elaborate a little bit further on what you're trying to do here? you're defining a secret in your code and then you want to do something with a service account?
cc @calm-pizza-15027
My runtime code needs an env var that points to a valid set of gcp credentials.
b
okay, so I think unfortunately the Google naming terminology might be confusing things here. There's a service account in GCP, and then a completely independent service account inside the GKE cluster, they're not related, they just have the same name
g
Yeah, if you are referring to a GCP Service account that has access to Google APIs, then I'd recommend looking at this post to see how to do this in Kubernetes manifests first - https://stackoverflow.com/a/47023291 The main thing I can see that may be missing in your example is that the
GOOGLE_APPLICATION_CREDENTIALS
variable should point to the path of the json file mounted in the container.
I took this from our code, so keep in mind stuff like
config.*
is just how we do things, but that should give you everything you need.
b
this is awesome, thanks @cool-egg-852!
c
No problem.
c
@cool-egg-852 @billowy-army-68599 @gray-ambulance-59402 Thanks Guys!