-
Notifications
You must be signed in to change notification settings - Fork 516
/
Copy pathmongodb.com_v1_metadata.yaml
59 lines (55 loc) · 1.35 KB
/
mongodb.com_v1_metadata.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
apiVersion: mongodbcommunity.mongodb.com/v1
kind: MongoDBCommunity
metadata:
name: mdb0
spec:
members: 3
type: ReplicaSet
version: "4.2.6"
security:
authentication:
modes: [ "SCRAM" ]
users:
- name: my-user
db: admin
passwordSecretRef: # a reference to the secret that will be used to generate the user's password
name: my-user-password
roles:
- name: clusterAdmin
db: admin
- name: userAdminAnyDatabase
db: admin
scramCredentialsSecretName: my-scram
additionalMongodConfig:
storage.wiredTiger.engineConfig.journalCompressor: zlib
statefulSet:
metadata:
annotations:
statefulSetAnnotationTest: testValue
labels:
statefulSetLabelTest: testValue
spec:
selector:
matchLabels:
podTemplateLabelTest: testValue
template:
metadata:
annotations:
podTemplateAnnotationTest: testValue
labels:
podTemplateLabelTest: testValue
volumeClaimTemplates:
- metadata:
name: data-volume
annotations:
pvcTemplateAnnotationTest: testValue
labels:
pvcTemplateLabelTest: testValue
---
apiVersion: v1
kind: Secret
metadata:
name: my-user-password
type: Opaque
stringData:
password: <your-password-here>