#RunLLM How do you access K8 Config map values in ...
# ask-ai
b
#RunLLM How do you access K8 Config map values in flyte
j
To access Kubernetes ConfigMap values in Flyte, you can mount the ConfigMap to the task pod. This is similar to how secrets are handled. You can use pod tasks to achieve this, as mentioned in Flyte's community discussion. Would you like more detail on how to implement this? Sources: - Flyte's community discussion 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.
b
@ancient-wolf-19325 Is there a way to K8 Config map as environment variables in a task?
j
Yes, you can use Kubernetes ConfigMaps as environment variables in a Flyte task by mounting them to the task pod. This can be done using the
envFrom
field in the Kubernetes pod specification, as discussed in Flyte's community discussion. Would you like more detail on how to configure this? Sources: - Flyte's community discussion 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.
a
@brief-family-9488 did this work for you?
b
@average-finland-92144 It sort of did, I ended up setting up the config maps through our IaC process, so I did not need to use the PodTemplate
a
Oh got it, thanks for sharing