Difference between revisions of "EnvFrom:"

From wikieduonline
Jump to navigation Jump to search
Line 20: Line 20:
 
           name: special-config
 
           name: special-config
 
   restartPolicy: Never
 
   restartPolicy: Never
 +
 +
== Related ==
 +
* <code>[[secretRef:]]</code>
  
 
== See also ==
 
== See also ==
 +
* {{Kubernetes secrets}}
 
* {{kubernetes}}
 
* {{kubernetes}}
  
 
[[Category:Kubernetes]]
 
[[Category:Kubernetes]]

Revision as of 10:52, 26 August 2022

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

See also

  • https://kubernetes.io/docs/tasks/configure-pod-container/configure-pod-configmap/
  • Advertising: