File tree 3 files changed +64
-3
lines changed
3 files changed +64
-3
lines changed Original file line number Diff line number Diff line change @@ -68,9 +68,7 @@ metadata:
68
68
environment : local
69
69
70
70
spec :
71
- type : NodePort
72
71
ports :
73
72
- port : 27017
74
- nodePort : 31000
75
73
selector :
76
74
io.kompose.service : mongodb
Original file line number Diff line number Diff line change 26
26
spec :
27
27
restartPolicy : Always
28
28
containers :
29
- - image : k3d.localhost:5000/todo
29
+ - image : k3d.localhost:5000/todo:1.0.0
30
30
name : todo
31
31
env :
32
32
- name : BIND_ADDRESS
Original file line number Diff line number Diff line change
1
+
2
+ apiVersion : apps/v1
3
+ kind : Deployment
4
+
5
+ metadata :
6
+ name : todo
7
+ namespace : todo
8
+ labels :
9
+ io.kompose.service : todo
10
+ annotations :
11
+ app : todo
12
+ type : backend
13
+
14
+ spec :
15
+ replicas : 1
16
+ selector :
17
+ matchLabels :
18
+ io.kompose.service : todo
19
+ template :
20
+ metadata :
21
+ labels :
22
+ io.kompose.service : todo
23
+ annotations :
24
+ app : todo
25
+ type : backend
26
+ spec :
27
+ restartPolicy : Always
28
+ containers :
29
+ - image : docker.io/jamming/todo:1.0.0
30
+ name : todo
31
+ env :
32
+ - name : BIND_ADDRESS
33
+ valueFrom :
34
+ configMapKeyRef :
35
+ name : todo-configmap
36
+ key : bindAddress
37
+ - name : MONGODB_URL
38
+ valueFrom :
39
+ configMapKeyRef :
40
+ name : todo-configmap
41
+ key : mongodbUrl
42
+ ports :
43
+ - containerPort : 2010
44
+
45
+ ---
46
+
47
+ apiVersion : v1
48
+ kind : Service
49
+
50
+ metadata :
51
+ name : todo
52
+ namespace : todo
53
+ labels :
54
+ io.kompose.service : todo
55
+ annotations :
56
+ app : todo
57
+ type : backend
58
+
59
+ spec :
60
+ ports :
61
+ - port : 2010
62
+ selector :
63
+ io.kompose.service : todo
You can’t perform that action at this time.
0 commit comments