feat(meali): add data volume
All checks were successful
Renovate / renovate (push) Successful in 1m25s
All checks were successful
Renovate / renovate (push) Successful in 1m25s
This commit is contained in:
parent
e2141d53fa
commit
8c715e7edd
3 changed files with 29 additions and 4 deletions
|
@ -12,6 +12,7 @@ resources:
|
|||
- resources/namespace.yaml
|
||||
- resources/db/db.yaml
|
||||
- resources/db/user.yaml
|
||||
- resources/pvc.yaml
|
||||
- resources/deployment.yaml
|
||||
|
||||
secretGenerator:
|
||||
|
|
|
@ -4,7 +4,9 @@ kind: Deployment
|
|||
metadata:
|
||||
name: meali
|
||||
spec:
|
||||
replicas: 2
|
||||
replicas: 1
|
||||
strategy:
|
||||
type: Recreate
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: meali
|
||||
|
@ -33,10 +35,17 @@ spec:
|
|||
resources:
|
||||
limits:
|
||||
cpu: 200m
|
||||
memory: 200Mi
|
||||
memory: 500Mi
|
||||
requests:
|
||||
cpu: 50m
|
||||
memory: 50Mi
|
||||
cpu: 150m
|
||||
memory: 450Mi
|
||||
volumeMounts:
|
||||
- name: app-data
|
||||
mountPath: /app/data/
|
||||
volumes:
|
||||
- name: app-data
|
||||
persistentVolumeClaim:
|
||||
claimName: meali-data
|
||||
securityContext:
|
||||
runAsUser: 1001
|
||||
runAsGroup: 1001
|
||||
|
|
15
meali/resources/pvc.yaml
Normal file
15
meali/resources/pvc.yaml
Normal file
|
@ -0,0 +1,15 @@
|
|||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: meali-data
|
||||
labels:
|
||||
app.kubernetes.io/name: meali
|
||||
spec:
|
||||
storageClassName: hcloud-blob
|
||||
resources:
|
||||
requests:
|
||||
storage: 10Gi
|
||||
volumeMode: Filesystem
|
||||
accessModes:
|
||||
- ReadWriteMany
|
Loading…
Reference in a new issue