bland-wolf-59979
06/27/2024, 11:22 PMcontainer
type module to use a configmap
as environment variables instead of mounting it as a volume in the container?
similar to how kubernetes uses configMapRef
?
yaml
apiVersion: v1
kind: Pod
metadata:
name: dapi-test-pod
spec:
containers:
- name: test-container
image: registry.k8s.io/busybox
command: [ "/bin/sh", "-c", "env" ]
envFrom:
- configMapRef:
name: special-config
restartPolicy: Never
chilly-gigabyte-83853
07/02/2024, 2:10 PMcontainer
type.
I would suggest you to either use the https://docs.garden.io/reference/action-types/deploy/configmap and mount it as volume in the container action (see: https://docs.garden.io/reference/action-types/deploy/container#spec.volumes-.action) or alternatively to move to a kubernetes
action, which would give you the maximum level of granularity. I hope this helps.