Use statefulset and persistent storage
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
itzaname 2022-06-18 03:37:28 -04:00
parent 1a257d7d4f
commit a2759ae0e4

View File

@ -1,5 +1,5 @@
apiVersion: apps/v1
kind: Deployment
kind: StatefulSet
metadata:
name: {{ include "maptest-bot.fullname" . }}
labels:
@ -11,6 +11,15 @@ spec:
selector:
matchLabels:
{{- include "maptest-bot.selectorLabels" . | nindent 6 }}
serviceName: {{ include "maptest-bot.fullname" . }}
volumeClaimTemplates:
- metadata:
name: map-submits
spec:
accessModes: [ "ReadWriteOnce" ]
resources:
requests:
storage: 1Gi
template:
metadata:
{{- with .Values.podAnnotations }}
@ -40,6 +49,8 @@ spec:
- name: config
mountPath: "/app/config"
readOnly: true
- name: map-submits
mountPath: "/app/files"
initContainers:
- name: {{ .Chart.Name }}-init
securityContext: