30 lines
515 B
YAML
30 lines
515 B
YAML
apiVersion: mongodbcommunity.mongodb.com/v1
|
|
kind: MongoDBCommunity
|
|
metadata:
|
|
name: my-mongo-cluster
|
|
namespace: default
|
|
spec:
|
|
members: 3
|
|
type: ReplicaSet
|
|
version: "7.0.1"
|
|
|
|
# Security/authentication
|
|
security:
|
|
authentication:
|
|
modes: ["SCRAM"]
|
|
|
|
# Admin user
|
|
users:
|
|
- name: myadmin
|
|
db: admin
|
|
passwordSecretRef:
|
|
name: my-mongo-password
|
|
roles:
|
|
- name: root
|
|
db: admin
|
|
|
|
# Ephemeral storage
|
|
statefulSet:
|
|
spec:
|
|
volumeClaimTemplates: []
|