Difference between revisions of "EnvFrom:"
Jump to navigation
Jump to search
↑ https://kubernetes.io/docs/tasks/configure-pod-container/configure-pod-configmap/
(3 intermediate revisions by one other user not shown) | |||
Line 20: | Line 20: | ||
name: special-config | name: special-config | ||
restartPolicy: Never | restartPolicy: Never | ||
+ | |||
+ | == Related == | ||
+ | * <code>[[secretRef:]]</code> | ||
+ | * <code>[[env:]]</code> | ||
== See also == | == See also == | ||
− | * {{ | + | * {{Kubernetes secrets}} |
+ | * {{ConfigMap}} | ||
[[Category:Kubernetes]] | [[Category:Kubernetes]] |
Latest revision as of 14:56, 13 January 2023
Official example: [1]
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
Related[edit]
See also[edit]
- Kubernetes secrets:
kubectl [ get | create | describe | delete | secret ] secrets
,secret.yml, kind: Secret, secretKeyRef, default-token, imagePullSecrets:, kubernetes.io/dockerconfigjson
- ConfigMaps:
kubectl [ get | edit | describe | create | delete ] configmaps
,aws-auth
, Kustomize,kind: ConfigMap, ConfigMapRef, envFrom
Advertising: