Skip to content

Commit 076f7b6

Browse files
committed
[SCIM-69] Changed mongo k8s package to deploy as a statefulset.
1 parent 6b6aebf commit 076f7b6

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

pkg-i2scim-prov-mongodb/4-i2scim-mongo-deploy.yml renamed to pkg-i2scim-prov-mongodb/4-i2scim-mongo-set.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ subjects:
5656
name: i2scim-mongo
5757
---
5858
apiVersion: apps/v1
59-
kind: Deployment
59+
kind: StatefulSet
6060
metadata:
6161
annotations:
6262
prometheus.io/port: "8080"
@@ -72,6 +72,7 @@ metadata:
7272
name: i2scim-mongo
7373
namespace: scim-mongo
7474
spec:
75+
serviceName: i2scim-mongo
7576
replicas: 2
7677
selector:
7778
matchLabels:
@@ -138,7 +139,7 @@ spec:
138139
readOnly: true
139140
subPath: ""
140141
- mountPath: /scim
141-
name: i2scim-mongo-pvc
142+
name: scimroot
142143
readOnly: false
143144
subPath: ""
144145
imagePullSecrets:
@@ -150,7 +151,13 @@ spec:
150151
name: i2scim-config-schema
151152
optional: false
152153
name: configschema
153-
- name: i2scim-mongo-pvc
154-
persistentVolumeClaim:
155-
claimName: i2scim-mongo-pvc
156-
readOnly: false
154+
volumeClaimTemplates:
155+
- metadata:
156+
name: scimroot
157+
spec:
158+
storageClassName: i2scimlog
159+
accessModes:
160+
- "ReadWriteOnce"
161+
resources:
162+
requests:
163+
storage: 1Gi

0 commit comments

Comments
 (0)