Difference between revisions of "EnvFrom:"

From wikieduonline
Jump to navigation Jump to search
(Created page with " Official example: <ref>https://kubernetes.io/docs/tasks/configure-pod-container/configure-pod-configmap/</ref> <pre> apiVersion: v1 kind: Pod metadata: name: dapi...")
 
Line 1: Line 1:
 
+
{{lc}}
  
 
Official example: <ref>https://kubernetes.io/docs/tasks/configure-pod-container/configure-pod-configmap/</ref>
 
Official example: <ref>https://kubernetes.io/docs/tasks/configure-pod-container/configure-pod-configmap/</ref>

Revision as of 22:21, 16 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
  

Advertising: