synapse: Convert to statefulset

This commit is contained in:
Rob Watson 2022-06-05 12:30:09 +02:00
parent 1f9030007c
commit 57d50a239f
3 changed files with 12 additions and 19 deletions

View File

@ -87,8 +87,7 @@ resources:
- role-drone-runner.yaml
- rolebinding-drone-runner.yaml
- pvc-synapse.yaml
- deploy-synapse.yaml
- statefulset-synapse.yaml
- svc-synapse.yaml
configMapGenerator:

View File

@ -1,16 +0,0 @@
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: synapse-data
namespace: default
labels:
app: synapse
component: storage
app.kubernetes.io/name: synapse
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 10Gi

View File

@ -1,5 +1,5 @@
apiVersion: apps/v1
kind: Deployment
kind: StatefulSet
metadata:
name: synapse
labels:
@ -8,6 +8,7 @@ metadata:
app.kubernetes.io/name: synapse
app.kubernetes.io/instance: synapse
spec:
serviceName: synapse
selector:
matchLabels:
app: synapse
@ -76,3 +77,12 @@ spec:
secret:
secretName: synapse-config
defaultMode: 0600
volumeClaimTemplates:
- metadata:
name: data
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 10Gi