Skip to content

Commit 12e4e4f

Browse files
committed
Merge branch 'master' of github.com:hexagontk/todo_backend into develop
2 parents 97c1001 + e5195b0 commit 12e4e4f

File tree

3 files changed

+64
-3
lines changed

3 files changed

+64
-3
lines changed

k8s/mongodb.yaml

-2
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,7 @@ metadata:
6868
environment: local
6969

7070
spec:
71-
type: NodePort
7271
ports:
7372
- port: 27017
74-
nodePort: 31000
7573
selector:
7674
io.kompose.service: mongodb

k8s/todo.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ spec:
2626
spec:
2727
restartPolicy: Always
2828
containers:
29-
- image: k3d.localhost:5000/todo
29+
- image: k3d.localhost:5000/todo:1.0.0
3030
name: todo
3131
env:
3232
- name: BIND_ADDRESS

k8s/todo_pro.yaml

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
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

0 commit comments

Comments
 (0)