-
Notifications
You must be signed in to change notification settings - Fork 9
Support environment variables read from kubernetes secrets #83
Comments
Thanks for opening an issue @tekumara! You can allow your worker to read from Kubernetes secrets by editing the base job template for your work pool in the Prefect UI. You can extend the You'll need to leave the |
@desertaxle Could you tell me what is meant by:
I'm having an issue where I'm hardcoding a bunch of env variables in the manifest but they're not showing up in the pod. Not sure what/where I need to leave blank in the worker pool manifest. Code samples would help. |
@mousetree After taking a second look at the code, I see that we are overriding hardcoded |
Thanks @desertaxle . For now we can just include them in the work pool. Does it handle arbitrary Kubernetes YAML there though? Currently we have:
But the above "object style" definitions are not the typical Kubernetes env var specification. Do you know how we could specify more complex things like these (from a Kubernetes YAML we used to use in an infra block):
|
+1 for this! I think the only workaround for this right now is to mount the secret as a volume. |
Expectation / Proposal
eg:
The text was updated successfully, but these errors were encountered: