Skip to content

Commit 4e8e175

Browse files
authored
add container environment variables
1 parent 4c45589 commit 4e8e175

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.transpire.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ def objects():
5959
dep.obj.spec.template.spec.containers[0].volume_mounts = [
6060
{"name": "secrets", "mountPath": "/opt/share/secrets/rt"},
6161
]
62+
63+
dep.obj.spec.template.spec.containers[0].env = [
64+
{"name": "SERVER_NAME", "value": "rt.ocf.berkeley.edu"},
65+
]
6266

6367
# also set the container used in deployment
6468
dep.obj.spec.template.spec.containers[0].name = "rt-nginx"

0 commit comments

Comments
 (0)