Skip to content

Commit f1677ea

Browse files
ashoknayak777komalreddy3
authored andcommitted
Added Field Path in Deployment Template (#4852)
1 parent 7dde5b0 commit f1677ea

File tree

1 file changed

+8
-0
lines changed
  • docs/user-guide/creating-application/deployment-template

1 file changed

+8
-0
lines changed

docs/user-guide/creating-application/deployment-template/deployment.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,14 @@ EnvVariables: []
6262
```
6363
To set environment variables for the containers that run in the Pod.
6464

65+
### EnvVariablesFromFieldPath
66+
```yaml
67+
EnvVariablesFromFieldPath:
68+
- name: ENV_NAME
69+
fieldPath: status.podIP (example)
70+
```
71+
To set environment variables for the containers and fetching their values from pod-level fields.
72+
6573
### Liveness Probe
6674

6775
If this check fails, kubernetes restarts the pod. This should return error code in case of non-recoverable error.

0 commit comments

Comments
 (0)