ancient-wolf-19325
09/03/2024, 9:45 AMenvFrom field to inject them as environment variables.
According to this discussion, you can create a pod template that references your secrets and then configure Flyte to use this pod template. Here is an example of a pod template that injects secrets as environment variables:
apiVersion: v1
kind: PodTemplate
metadata:
name: flyte-template
template:
spec:
containers:
- name: primary
image: docker.io/rwgrim/docker-noop
envFrom:
- secretRef:
name: my-secret
You can then configure Flyte to use this pod template by setting the default-pod-template-name in your Flyte configuration.
Would you like more details on how to configure this in Flyte?
Sources:
- Flyte Discussion on Secrets
Slack Link
https://flyte-org.slack.com/archives/CP2HDHKE1/p1725356715.388399 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.