Build environment variables on the values of other variables
Expose introspection information to pod
Build environment variables on the values of other variables
Expose introspection information to pod
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: downward-test | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: nginx | |
template: | |
metadata: | |
labels: | |
app: nginx | |
spec: | |
containers: | |
- name: nginx | |
image: nginx:latest | |
envFrom: | |
- configMapRef: | |
name: my-configmap | |
env: | |
- name: DAT_NAMESPACE | |
valueFrom: | |
fieldRef: | |
fieldPath: metadata.namespace | |
- name: TEST_URL | |
value: "https://$(DAT_NAMESPACE)" |