Skip to content

Commit

Permalink
Merge branch 'master' of github.com:hexagontk/todo_backend into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
jaguililla committed Jun 28, 2024
2 parents 97c1001 + e5195b0 commit 12e4e4f
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 3 deletions.
2 changes: 0 additions & 2 deletions k8s/mongodb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,7 @@ metadata:
environment: local

spec:
type: NodePort
ports:
- port: 27017
nodePort: 31000
selector:
io.kompose.service: mongodb
2 changes: 1 addition & 1 deletion k8s/todo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ spec:
spec:
restartPolicy: Always
containers:
- image: k3d.localhost:5000/todo
- image: k3d.localhost:5000/todo:1.0.0
name: todo
env:
- name: BIND_ADDRESS
Expand Down
63 changes: 63 additions & 0 deletions k8s/todo_pro.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@

apiVersion: apps/v1
kind: Deployment

metadata:
name: todo
namespace: todo
labels:
io.kompose.service: todo
annotations:
app: todo
type: backend

spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: todo
template:
metadata:
labels:
io.kompose.service: todo
annotations:
app: todo
type: backend
spec:
restartPolicy: Always
containers:
- image: docker.io/jamming/todo:1.0.0
name: todo
env:
- name: BIND_ADDRESS
valueFrom:
configMapKeyRef:
name: todo-configmap
key: bindAddress
- name: MONGODB_URL
valueFrom:
configMapKeyRef:
name: todo-configmap
key: mongodbUrl
ports:
- containerPort: 2010

---

apiVersion: v1
kind: Service

metadata:
name: todo
namespace: todo
labels:
io.kompose.service: todo
annotations:
app: todo
type: backend

spec:
ports:
- port: 2010
selector:
io.kompose.service: todo

0 comments on commit 12e4e4f

Please sign in to comment.