Difference between revisions of "Kubernetes, env:"

From wikieduonline
Jump to navigation Jump to search
Line 16: Line 16:
  
 
== Related ==
 
== Related ==
* [[kind: Deployment]]
+
* <code>[[kind: Deployment]]</code>
 
* <code>[[valueFrom:]]</code>
 
* <code>[[valueFrom:]]</code>
 
* <code>[[fieldRef:]]</code>
 
* <code>[[fieldRef:]]</code>

Revision as of 11:17, 10 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

See also

Advertising: