Mars
05/02/2022, 3:16 PMPREFECT__CONTEXT__SECRETS__GITHUB_ACCESS_TOKEN
variable in the k8s manifest created by prefect agent kubernetes install
? Do I have to use the --env
switch or can I provide the value by editing the generated deployment container’s env:
list directly?Kevin Kho
Mars
05/02/2022, 3:32 PMkubernetes install
generates is a Deployment. There is no mention of a Job template. Is there a step I’m missing from the article where the GitHub token is provided?Anna Geller
Mars
05/02/2022, 3:35 PMAnna Geller
Kevin Kho
Mars
05/02/2022, 3:36 PMAnna Geller
Kevin Kho
PrefectSecret
task to pull from both local and Cloud. It’s configured to pull from one sourceAnna Geller
Mars
05/02/2022, 4:11 PMAnna Geller
Mars
05/02/2022, 4:42 PMAnna Geller
Mars
05/02/2022, 4:59 PMAnna Geller
Mateo Merlo
05/08/2022, 1:02 PMAnna Geller
Mateo Merlo
05/08/2022, 2:17 PMSTORAGE = GitHub(
repo="mateo2181/my-repo",
path=f"flows/{FLOW_NAME}.py",
access_token_secret="GITHUB_ACCESS_TOKEN"
)
And my kubernetes config:
RUN_CONFIG = KubernetesRun(labels=[AGENT_LABEL])
Should I pass GITHUB_ACCESS_TOKEN to KubernetesRun as env? Or should I do it in the yaml file that I use to run Kubernetes?Anna Geller
Mateo Merlo
05/08/2022, 2:34 PMAnna Geller
export PREFECT__CLOUD__USE_LOCAL_SECRETS=false
Mateo Merlo
05/08/2022, 2:39 PMAnna Geller
Mateo Merlo
05/08/2022, 2:58 PMKevin Kho
Mateo Merlo
05/09/2022, 7:02 AM