This commit is contained in:
parent
e2141d53fa
commit
3b15124408
3 changed files with 23 additions and 0 deletions
|
@ -12,6 +12,7 @@ resources:
|
||||||
- resources/namespace.yaml
|
- resources/namespace.yaml
|
||||||
- resources/db/db.yaml
|
- resources/db/db.yaml
|
||||||
- resources/db/user.yaml
|
- resources/db/user.yaml
|
||||||
|
- resources/pvc.yaml
|
||||||
- resources/deployment.yaml
|
- resources/deployment.yaml
|
||||||
|
|
||||||
secretGenerator:
|
secretGenerator:
|
||||||
|
|
|
@ -37,6 +37,13 @@ spec:
|
||||||
requests:
|
requests:
|
||||||
cpu: 50m
|
cpu: 50m
|
||||||
memory: 50Mi
|
memory: 50Mi
|
||||||
|
volumeMounts:
|
||||||
|
- name: meali-data
|
||||||
|
mountPath: /app/data/
|
||||||
|
volumes:
|
||||||
|
- name: app-data
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: meali-data
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsUser: 1001
|
runAsUser: 1001
|
||||||
runAsGroup: 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