84 lines
2.0 KiB
YAML
84 lines
2.0 KiB
YAML
---
|
|
apiVersion: codemowers.cloud/v1beta1
|
|
kind: SecretClaim
|
|
metadata:
|
|
name: wildduck-readwrite-password
|
|
spec:
|
|
mapping:
|
|
- key: password
|
|
value: "%(plaintext)s"
|
|
---
|
|
apiVersion: mongodbcommunity.mongodb.com/v1
|
|
kind: MongoDBCommunity
|
|
metadata:
|
|
name: wildduck-mongodb
|
|
spec:
|
|
additionalMongodConfig:
|
|
systemLog:
|
|
quiet: true
|
|
members: 2
|
|
arbiters: 1
|
|
type: ReplicaSet
|
|
version: "6.0.3"
|
|
security:
|
|
authentication:
|
|
modes: ["SCRAM"]
|
|
users:
|
|
- name: readwrite
|
|
db: wildduck
|
|
passwordSecretRef:
|
|
name: wildduck-readwrite-password
|
|
roles:
|
|
- name: readWrite
|
|
db: wildduck
|
|
scramCredentialsSecretName: wildduck-readwrite
|
|
statefulSet:
|
|
spec:
|
|
logLevel: WARN
|
|
template:
|
|
spec:
|
|
containers:
|
|
- name: mongod
|
|
resources:
|
|
requests:
|
|
cpu: 100m
|
|
memory: 1Gi
|
|
limits:
|
|
cpu: 4000m
|
|
memory: 1Gi
|
|
- name: mongodb-agent
|
|
resources:
|
|
requests:
|
|
cpu: 1m
|
|
memory: 100Mi
|
|
limits: {}
|
|
affinity:
|
|
podAntiAffinity:
|
|
requiredDuringSchedulingIgnoredDuringExecution:
|
|
- labelSelector:
|
|
matchExpressions:
|
|
- key: app
|
|
operator: In
|
|
values:
|
|
- wildduck-mongodb-svc
|
|
topologyKey: topology.kubernetes.io/zone
|
|
volumeClaimTemplates:
|
|
- metadata:
|
|
name: logs-volume
|
|
spec:
|
|
storageClassName: mongo
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
resources:
|
|
requests:
|
|
storage: 512Mi
|
|
- metadata:
|
|
name: data-volume
|
|
spec:
|
|
storageClassName: mongo
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
resources:
|
|
requests:
|
|
storage: 10Gi
|