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 kind: Deployment
metadata: metadata:
namespace: spring-dev namespace: spring-dev
name: mongo name: mongo-deployment
spec: spec:
selector: selector:
matchLabels: matchLabels:
@ -44,7 +44,14 @@ spec:
volumeMounts: volumeMounts:
- name: storage - name: storage
mountPath: /data/db mountPath: /data/db
resources:
requests:
cpu: 100m
memory: 100Mi
limits:
cpu: 100m
memory: 100Mi
volumes: volumes:
- name: storage - name: storage
persistentVolumeClaim: persistentVolumeClaim:
claimName: mongo-pvc claimName: mongo-pvc

View File

@ -38,4 +38,11 @@ spec:
value: mongodb://mongo:27017/spring-web-api value: mongodb://mongo:27017/spring-web-api
- name: APP_NAME - name: APP_NAME
value: spring-web-api-hello value: spring-web-api-hello
imagePullPolicy: Always imagePullPolicy: Always
resources:
requests:
cpu: 300m
memory: 300Mi
limits:
cpu: 800m
memory: 800Mi