Mention container environment variables in concepts/pods

Mention container environment variables in pods
pull/45774/head
Marcelo Giles 2024-04-04 11:39:17 -07:00
parent 1d8cfb08dc
commit 5270c7a1c9
No known key found for this signature in database
GPG Key ID: F79A638016E48DFE
1 changed files with 4 additions and 0 deletions

View File

@ -167,6 +167,10 @@ Each controller for a workload resource uses the `PodTemplate` inside the worklo
object to make actual Pods. The `PodTemplate` is part of the desired state of whatever
workload resource you used to run your app.
When you create a Pod, you can include
[environment variables](/docs/tasks/inject-data-application/define-environment-variable-container/)
in the Pod template for the containers that run in the Pod.
The sample below is a manifest for a simple Job with a `template` that starts one
container. The container in that Pod prints a message then pauses.