Skip to content

Commit

Permalink
Merge pull request #41 from FIS2425/hotfix/40-fix-mongodb-kubernetes-…
Browse files Browse the repository at this point in the history
…config

fix: Fixed mongodb config in kubernetes
  • Loading branch information
darkgigi authored Nov 28, 2024
2 parents 2e65024 + 59bd1e8 commit d69d223
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 4 additions & 1 deletion kubernetes/history-svc-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ spec:
name: history-secrets
key: KAFKA_HOST
- name: MONGOURL
value: mongodb://$(MONGOADMIN):$(MONGOPASS)@mongodb:27017/history?authSource=admin
valueFrom:
secretKeyRef:
name: history-secrets
key: MONGOURL
- name: NODE_ENV
value: production
image: ghcr.io/fis2425/history-svc:latest
Expand Down
3 changes: 1 addition & 2 deletions kubernetes/mongodb-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ spec:
type: ClusterIP
ports:
- protocol: TCP
name: "27018"
port: 27018
port: 27017
targetPort: 27017
selector:
io.kompose.service: mongodb

0 comments on commit d69d223

Please sign in to comment.