envFrom:

From wikieduonline
Revision as of 22:22, 16 August 2022 by Welcome (talk | contribs)
Jump to navigation Jump to search

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: