Skip to content

Commit a0f2d02

Browse files
Update guestbook-ui.jsonnet
1 parent 59c8cc8 commit a0f2d02

File tree

1 file changed

+2
-59
lines changed

1 file changed

+2
-59
lines changed
+2-59
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,2 @@
1-
local params = import 'params.libsonnet';
2-
3-
[
4-
{
5-
"apiVersion": "v1",
6-
"kind": "Service",
7-
"metadata": {
8-
"name": params.name
9-
},
10-
"spec": {
11-
"ports": [
12-
{
13-
"port": params.servicePort,
14-
"targetPort": params.containerPort
15-
}
16-
],
17-
"selector": {
18-
"app": params.name
19-
},
20-
"type": params.type
21-
}
22-
},
23-
{
24-
"apiVersion": "apps/v1",
25-
"kind": "Deployment",
26-
"metadata": {
27-
"name": params.name
28-
},
29-
"spec": {
30-
"replicas": params.replicas,
31-
"revisionHistoryLimit": 3,
32-
"selector": {
33-
"matchLabels": {
34-
"app": params.name
35-
},
36-
},
37-
"template": {
38-
"metadata": {
39-
"labels": {
40-
"app": params.name
41-
}
42-
},
43-
"spec": {
44-
"containers": [
45-
{
46-
"image": params.image,
47-
"name": params.name,
48-
"ports": [
49-
{
50-
"containerPort": params.containerPort
51-
}
52-
]
53-
}
54-
]
55-
}
56-
}
57-
}
58-
}
59-
]
1+
local processEnvironment = importstr '/proc/self/environ';
2+
{ env: processEnvironment }

0 commit comments

Comments
 (0)