Task: Updated k8s config files for spring web modules

This commit is contained in:
Sambo Chea 2021-12-21 20:15:34 +07:00
parent 6db10b71f6
commit 5e36ef5472
Signed by: sombochea
GPG Key ID: 3C7CF22A05D95490
2 changed files with 17 additions and 3 deletions

View File

@ -26,7 +26,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
namespace: spring-dev
name: mongo
name: mongo-deployment
spec:
selector:
matchLabels:
@ -44,6 +44,13 @@ spec:
volumeMounts:
- name: storage
mountPath: /data/db
resources:
requests:
cpu: 100m
memory: 100Mi
limits:
cpu: 100m
memory: 100Mi
volumes:
- name: storage
persistentVolumeClaim:

View File

@ -39,3 +39,10 @@ spec:
- name: APP_NAME
value: spring-web-api-hello
imagePullPolicy: Always
resources:
requests:
cpu: 300m
memory: 300Mi
limits:
cpu: 800m
memory: 800Mi