Difference between revisions of "Kubernetes, env:"

From wikieduonline
Jump to navigation Jump to search
 
(6 intermediate revisions by 2 users not shown)
Line 5: Line 5:
 
   labels:
 
   labels:
 
     purpose: demonstrate-envars
 
     purpose: demonstrate-envars
  spec:
+
  [[spec:]]
 
   [[containers:]]
 
   [[containers:]]
 
   - name: envar-demo-container
 
   - name: envar-demo-container
Line 16: Line 16:
  
 
== Related ==
 
== Related ==
* [[valueFrom:]]
+
* <code>[[kind: Deployment]]</code>
* [[fieldRef:]]
+
* <code>[[valueFrom:]]</code>
* [[fieldPath:]]
+
* <code>[[fieldRef:]]</code>
 
+
* <code>[[fieldPath:]]</code>
 +
* [[Downward API]]
 +
* [[containers:]]
  
 
== See also ==
 
== See also ==
 +
* {{env}}
 
* {{Pod}}
 
* {{Pod}}
  
 
[[Category:K8s]]
 
[[Category:K8s]]

Latest revision as of 12:15, 25 October 2023

apiVersion: v1
kind: Pod
metadata:
 name: envar-demo
 labels:
   purpose: demonstrate-envars
spec:
 containers:
 - name: envar-demo-container
   image: gcr.io/google-samples/node-hello:1.0
   env:
   - name: DEMO_GREETING
     value: "Hello from the environment"
   - name: DEMO_FAREWELL
     value: "Such a sweet sorrow"

Related[edit]

See also[edit]

Advertising: