Ginger Balmat
07/23/2021, 8:38 PMK8sRunLauncher
along with the k8s_job_executer
with a very simple 2 step pipeline. I'm able to get my pipeline to start, but I'm using GCS as my io_manager. Once my first step starts, I see this error message:
Initialization of resources [gcs, io_manager] failed.
google.auth.exceptions.DefaultCredentialsError: Could not automatically determine credentials. Please set GOOGLE_APPLICATION_CREDENTIALS or explicitly create credentials and re-run the application. For more information, please see <https://cloud.google.com/docs/authentication/getting-started>
My question is, what's the proper way to set this env variable? My thought is to take the following steps:
1. create a k8s secret that has the contents of my private key file.
2. define a k8s volume with the secret
3. mount the secret volume to the k8s_job_executor
job's container
4. set GOOGLE_APPLICATION_CREDENTIALS
to point to key file in volume mount
I'm not exactly sure how to accomplish step 3 though. Does anyone know if this is the proper way to use GCS for intermediate storage? Is there a better way? Thanks in advance!johann
07/26/2021, 12:50 PMGinger Balmat
07/26/2021, 1:53 PM