Difference between revisions of "EnvFrom:"

From wikieduonline
Jump to navigation Jump to search
 
Line 23: Line 23:
 
== Related ==
 
== Related ==
 
* <code>[[secretRef:]]</code>
 
* <code>[[secretRef:]]</code>
[[env:]]
+
* <code>[[env:]]</code>
  
 
== See also ==
 
== See also ==

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]

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