Skip to content

Commit

Permalink
add procedures service
Browse files Browse the repository at this point in the history
Signed-off-by: Manuel Ruck <[email protected]>
  • Loading branch information
Manuel Ruck committed Sep 22, 2024
1 parent 6ae5216 commit 67c06e6
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 1 deletion.
2 changes: 1 addition & 1 deletion kustomize/base/main/bundestagio-admin-depl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ spec:
spec:
containers:
- name: bundestagio-admin
image: democracy/bundestag.io-admin:3.4.1
image: democracy/bundestag.io-admin:pr-600
env:
- name: AI_ACCESS_TOKEN
valueFrom:
Expand Down
1 change: 1 addition & 0 deletions kustomize/base/main/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ resources:
- bundestagio-depl.yaml
- votes-ai.yaml
- non-named-votes-ai.yaml
- procedures.yaml
- bundestagio-dip-depl.yaml
- democracy-api-depl.yaml
- democracy-app-depl.yaml
Expand Down
49 changes: 49 additions & 0 deletions kustomize/base/main/procedures.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: procedures
spec:
replicas: 1
selector:
matchLabels:
app: procedures
template:
metadata:
labels:
app: procedures
spec:
containers:
- name: procedures
image: democracy/procedures:pr-600
imagePullPolicy: IfNotPresent
ports:
- containerPort: 3000
protocol: TCP
env:
- name: DB_URL
valueFrom:
configMapKeyRef:
name: bio-api-config
key: DB_URL
resources:
requests:
memory: "150M"
cpu: "50m"
limits:
memory: "200M"
cpu: "300m"
---
apiVersion: v1
kind: Service
metadata:
labels:
app: procedures
name: procedures
spec:
selector:
app: procedures
ports:
- name: http
protocol: TCP
port: 80
targetPort: 3000

0 comments on commit 67c06e6

Please sign in to comment.