Ananthapadmanabhan P
03/27/2021, 4:33 PMPREFECT__CONTEXT__SECRETS__AWS_CREDENTIALS='{"ACCESS_KEY": "<my_key_here>", "SECRET_ACCESS_KEY": "<my_secret_key_here>"}' python create_flow.py
And this is how i internally pass it down into the KubernetesRun method
job_env = {
"PREFECT__CONTEXT__SECRETS__AWS_CREDENTIALS":
os.getenv("PREFECT__CONTEXT__SECRETS__AWS_CREDENTIALS"),
"PREFECT__BACKEND":
"server"
}
flow.run_config = KubernetesRun(env=job_env,
image="ananthutest/prefect-test:latest")
But when i do kubectl describe of the created pod/job in k8s, it shows PREFECT__CONTEXT__SECRETS__AWS_CREDENTIALS
under Environment
in plain text. Anyway I can avoid this?Ananthapadmanabhan P
03/27/2021, 4:38 PMChris White
Ananthapadmanabhan P
03/28/2021, 7:37 AM