Task: Updated k8s config files for spring web modules
This commit is contained in:
parent
6db10b71f6
commit
5e36ef5472
@ -26,7 +26,7 @@ apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
namespace: spring-dev
|
||||
name: mongo
|
||||
name: mongo-deployment
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
@ -44,7 +44,14 @@ spec:
|
||||
volumeMounts:
|
||||
- name: storage
|
||||
mountPath: /data/db
|
||||
resources:
|
||||
requests:
|
||||
cpu: 100m
|
||||
memory: 100Mi
|
||||
limits:
|
||||
cpu: 100m
|
||||
memory: 100Mi
|
||||
volumes:
|
||||
- name: storage
|
||||
persistentVolumeClaim:
|
||||
claimName: mongo-pvc
|
||||
claimName: mongo-pvc
|
||||
|
@ -38,4 +38,11 @@ spec:
|
||||
value: mongodb://mongo:27017/spring-web-api
|
||||
- name: APP_NAME
|
||||
value: spring-web-api-hello
|
||||
imagePullPolicy: Always
|
||||
imagePullPolicy: Always
|
||||
resources:
|
||||
requests:
|
||||
cpu: 300m
|
||||
memory: 300Mi
|
||||
limits:
|
||||
cpu: 800m
|
||||
memory: 800Mi
|
Loading…
Reference in New Issue
Block a user