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
|
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
|
||||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user