kubernetes-cloud-mysql-backup icon indicating copy to clipboard operation
kubernetes-cloud-mysql-backup copied to clipboard

I am receiving this error ERROR: (gcloud.auth.activate-service-account) Could not read json file /root/gcloud.json: Expecting value: line 1 column 1 (char 0)

Open RathVong opened this issue 3 years ago • 1 comments

I have encoded the base64 string using the command

base64 -i gke_key.json -o k.txt

I added the text string in the kubernetes yaml file as a secret. What is the best option to encode the json file?

RathVong avatar Sep 19 '22 11:09 RathVong

Hey @RathVong,

Sorry for the delay in getting back to you.

Did you manage to work this out?

I am working on a pretty big new version of this utility, when it is released, the recommended way to do authentication will move away from a Service Account Key as an environment variable. Instead the recommendation will be to use Workload Identity which would indirectly solve this problem.

benjamin-maynard avatar Dec 04 '22 11:12 benjamin-maynard