Difference between revisions of "Kubernetes, env:"
Jump to navigation
Jump to search
(Created page with " apiVersion: v1 kind: Pod metadata: name: envar-demo labels: purpose: demonstrate-envars spec: containers: - name: envar-demo-container [[image:]] g...") |
|||
(12 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
apiVersion: v1 | apiVersion: v1 | ||
[[kind: Pod]] | [[kind: Pod]] | ||
− | metadata: | + | [[metadata:]] |
name: envar-demo | name: envar-demo | ||
labels: | labels: | ||
purpose: demonstrate-envars | purpose: demonstrate-envars | ||
− | spec: | + | [[spec:]] |
[[containers:]] | [[containers:]] | ||
- name: envar-demo-container | - name: envar-demo-container | ||
− | [[image | + | [[image]]: gcr.io/google-samples/node-hello:1.0 |
env: | env: | ||
- name: DEMO_GREETING | - name: DEMO_GREETING | ||
Line 15: | Line 15: | ||
value: "Such a sweet sorrow" | value: "Such a sweet sorrow" | ||
+ | == Related == | ||
+ | * <code>[[kind: Deployment]]</code> | ||
+ | * <code>[[valueFrom:]]</code> | ||
+ | * <code>[[fieldRef:]]</code> | ||
+ | * <code>[[fieldPath:]]</code> | ||
+ | * [[Downward API]] | ||
+ | * [[containers:]] | ||
+ | == See also == | ||
+ | * {{env}} | ||
+ | * {{Pod}} | ||
− | + | [[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]
- Variables: Environment variables,
env
,env-cmd
,.env/
,SHELL
,PS1, HOME, $?
,PATH
,HISTFILE, PWD, LD_LIBRARY_PATH
,printenv, getenv, getenv, direnv
, AWS cli environmental variables, envsubst,env:, env_file
(docker-compose) - Pods,
Mypod.yml
, Create and configure a basic Pod,pod (command)
,pod --help
,pod install
, List containers on a POD,livenessProbe, readinessProbe
, Pod status, Static pod, Pod Security, PodReplacementPolicy
Advertising: