Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Trinh-Tan-Dat committed Jun 11, 2024
1 parent fb78f47 commit f60c54e
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 5 deletions.
38 changes: 34 additions & 4 deletions database.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,39 @@ spec:
value: user-service
resources:
limits:
memory: 256Mi
cpu: "1"
memory: "128Mi"
cpu: "0.2"
volumeMounts:
- name: mongo-storage
mountPath: /data/db
volumes:
- name: mongo-storage
persistentVolumeClaim:
claimName: user-mongo-pvc
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: user-mongo-pv
spec:
capacity:
storage: 256Mi
accessModes:
- ReadWriteOnce
gcePersistentDisk:
pdName: user-mongo-disk
fsType: ext4
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: user-mongo-pvc
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 256Mi
---
apiVersion: v1
kind: Service
Expand All @@ -35,5 +66,4 @@ spec:
ports:
- protocol: TCP
port: 27017
targetPort: 27017

targetPort: 27017
2 changes: 1 addition & 1 deletion resources.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ spec:
- protocol: TCP
port: 8081
targetPort: 8081
type: ClusterIP
type: NodePort

0 comments on commit f60c54e

Please sign in to comment.