Use statefulset and persistent storage
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
1a257d7d4f
commit
a2759ae0e4
@ -1,5 +1,5 @@
|
|||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: StatefulSet
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "maptest-bot.fullname" . }}
|
name: {{ include "maptest-bot.fullname" . }}
|
||||||
labels:
|
labels:
|
||||||
@ -11,6 +11,15 @@ spec:
|
|||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
{{- include "maptest-bot.selectorLabels" . | nindent 6 }}
|
{{- include "maptest-bot.selectorLabels" . | nindent 6 }}
|
||||||
|
serviceName: {{ include "maptest-bot.fullname" . }}
|
||||||
|
volumeClaimTemplates:
|
||||||
|
- metadata:
|
||||||
|
name: map-submits
|
||||||
|
spec:
|
||||||
|
accessModes: [ "ReadWriteOnce" ]
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 1Gi
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
{{- with .Values.podAnnotations }}
|
{{- with .Values.podAnnotations }}
|
||||||
@ -40,6 +49,8 @@ spec:
|
|||||||
- name: config
|
- name: config
|
||||||
mountPath: "/app/config"
|
mountPath: "/app/config"
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
- name: map-submits
|
||||||
|
mountPath: "/app/files"
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: {{ .Chart.Name }}-init
|
- name: {{ .Chart.Name }}-init
|
||||||
securityContext:
|
securityContext:
|
Loading…
Reference in New Issue
Block a user