synapse: Convert to statefulset
This commit is contained in:
parent
1f9030007c
commit
57d50a239f
|
@ -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:
|
||||
|
|
|
@ -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
|
|
@ -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
|
Loading…
Reference in New Issue