We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 541f4c2 commit 81469adCopy full SHA for 81469ad
1 file changed
.transpire.py
@@ -8,33 +8,36 @@
8
9
10
def objects():
11
-
+ # Secrets, added through vault
12
sec = Secret(
13
name=name,
14
string_data={
15
"OUTLINE_API_KEY": "",
16
},
17
)
18
19
+ # Deployment
20
dep = Deployment(
21
22
image=get_image_tag("ocfdocs"),
23
ports=[15000],
24
25
# Export secrets to environment
26
dep.pod_spec().with_configmap_env(name).with_secret_env(name)
27
+
28
+ # Service
29
svc = Service(
30
31
selector=dep.get_selector(),
32
port_on_pod=15000,
33
port_on_svc=80,
34
35
- ing = Ingress.from_svc(
- svc=svc,
36
+ # Ingress
37
+ ing = Ingress(
38
+ service_name=name,
39
host="mkdocs.ocf.berkeley.edu",
- path_prefix="/",
40
+ service_port=80,
41
42
43
yield dep.build()
0 commit comments