Open boredland opened 4 years ago
Is there a way to use configMaps to configure the environment variables in a container in this style?
https://kubernetes.io/docs/tasks/configure-pod-container/configure-pod-configmap/#configure-all-key-value-pairs-in-a-configmap-as-container-environment-variables
Something like in the official docs is what I search:
pods/pod-configmap-envFrom.yaml apiVersion: v1 kind: Pod metadata: name: dapi-test-pod spec: containers: - name: test-container image: k8s.gcr.io/busybox command: [ "/bin/sh", "-c", "env" ] envFrom: - configMapRef: name: special-config restartPolicy: Never
Check examples at here https://github.com/rancher/rio/blob/master/docs/workloads.md#examples. There are only CLI examples but syntax will be same for riofile.
Is there a way to use configMaps to configure the environment variables in a container in this style?
https://kubernetes.io/docs/tasks/configure-pod-container/configure-pod-configmap/#configure-all-key-value-pairs-in-a-configmap-as-container-environment-variables
Something like in the official docs is what I search: