synapse: Convert to statefulset
This commit is contained in:
parent
1f9030007c
commit
57d50a239f
|
@ -87,8 +87,7 @@ resources:
|
||||||
- role-drone-runner.yaml
|
- role-drone-runner.yaml
|
||||||
- rolebinding-drone-runner.yaml
|
- rolebinding-drone-runner.yaml
|
||||||
|
|
||||||
- pvc-synapse.yaml
|
- statefulset-synapse.yaml
|
||||||
- deploy-synapse.yaml
|
|
||||||
- svc-synapse.yaml
|
- svc-synapse.yaml
|
||||||
|
|
||||||
configMapGenerator:
|
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
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: StatefulSet
|
||||||
metadata:
|
metadata:
|
||||||
name: synapse
|
name: synapse
|
||||||
labels:
|
labels:
|
||||||
|
@ -8,6 +8,7 @@ metadata:
|
||||||
app.kubernetes.io/name: synapse
|
app.kubernetes.io/name: synapse
|
||||||
app.kubernetes.io/instance: synapse
|
app.kubernetes.io/instance: synapse
|
||||||
spec:
|
spec:
|
||||||
|
serviceName: synapse
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: synapse
|
app: synapse
|
||||||
|
@ -76,3 +77,12 @@ spec:
|
||||||
secret:
|
secret:
|
||||||
secretName: synapse-config
|
secretName: synapse-config
|
||||||
defaultMode: 0600
|
defaultMode: 0600
|
||||||
|
volumeClaimTemplates:
|
||||||
|
- metadata:
|
||||||
|
name: data
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 10Gi
|
Loading…
Reference in New Issue