We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2270466 commit 2670c7eCopy full SHA for 2670c7e
.transpire.py
@@ -8,19 +8,6 @@
8
9
10
def objects():
11
- dep = Deployment(
12
- name=name,
13
- image=get_image_tag("ocfdocs"),
14
- ports=[15000],
15
- )
16
-
17
- svc = Service(
18
19
- selector=dep.get_selector(),
20
- port_on_pod=15000,
21
- port_on_svc=80,
22
23
24
ing = Ingress.from_svc(
25
svc=svc,
26
# TODO: Define domain name
@@ -36,6 +23,20 @@ def objects():
36
},
37
)
38
+ dep = Deployment(
27
+ name=name,
28
+ image=get_image_tag("ocfdocs"),
29
+ ports=[15000],
30
+ )
31
+ deplop.pod_spec().with_configmap_env(name).with_secret_env(name)
32
+
33
+ svc = Service(
34
35
+ selector=dep.get_selector(),
+ port_on_pod=15000,
+ port_on_svc=80,
39
40
yield dep.build()
41
yield svc.build()
42
yield ing.build()
0 commit comments