diff --git a/meali/config/meali.env b/meali/config/meali.env index d3a0acb..31066b3 100644 Binary files a/meali/config/meali.env and b/meali/config/meali.env differ diff --git a/meali/kustomization.yaml b/meali/kustomization.yaml index a4241c7..86d36a9 100644 --- a/meali/kustomization.yaml +++ b/meali/kustomization.yaml @@ -12,6 +12,7 @@ resources: - resources/namespace.yaml - resources/db/db.yaml - resources/db/user.yaml + - resources/pvc.yaml - resources/deployment.yaml secretGenerator: diff --git a/meali/resources/deployment.yaml b/meali/resources/deployment.yaml index 4cf9a84..226a007 100644 --- a/meali/resources/deployment.yaml +++ b/meali/resources/deployment.yaml @@ -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,14 +35,21 @@ 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 - fsGroup: 1001 + runAsUser: 1000 + runAsGroup: 1000 + fsGroup: 1000 affinity: podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: diff --git a/meali/resources/pvc.yaml b/meali/resources/pvc.yaml new file mode 100644 index 0000000..e3972a2 --- /dev/null +++ b/meali/resources/pvc.yaml @@ -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