I am trying to deploy basic MongoDBCommunity resource using latest mck v1.2.0.
The resource just seems to get stuck in the infinite loop, waiting for the agent:
❯ k logs -f example-mongodb-0
Defaulted container "mongod" out of: mongod, mongodb-agent, mongod-posthook (init), mongodb-agent-readin
essprobe (init)
2025-08-04T18:04:37.140Z INFO versionhook/main.go:33 Running version change post-start hook
2025-08-04T18:04:37.141Z INFO versionhook/main.go:40 Waiting for agent health status...
2025-08-04T18:04:38.141Z INFO versionhook/main.go:46 Agent health status file not found, mong
od will start
Waiting for config and keyfile files to be created by the agent...
Waiting...
Waiting...
Waiting...
Here are the manifests (pretty much the basic example from documentation, plus some resources and storage class overrides):
---
apiVersion: mongodbcommunity.mongodb.com/v1
kind: MongoDBCommunity
metadata:
name: example-mongodb
namespace: test
spec:
members: 3
type: ReplicaSet
version: 6.0.5
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
statefulSet:
spec:
template:
spec:
containers:
- name: mongod
resources:
limits:
cpu: 3
memory: 2000Mi
requests:
cpu: 3
memory: 2000Mi
initContainers:
- name: mongod-posthook
resources:
limits:
cpu: 1
memory: 2000Mi
requests:
cpu: 0.5
memory: 1000Mi
- name: mongodb-agent-readinessprobe
resources:
limits:
cpu: 0.5
memory: 128Mi
requests:
cpu: 0.5
memory: 128Mi
volumeClaimTemplates:
- metadata:
name: data-volume
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 5G
storageClassName: directpv-min-io
- metadata:
name: logs-volume
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 2G
storageClassName: directpv-min-io
additionalMongodConfig:
storage.wiredTiger.engineConfig.journalCompressor: zlib
# the user credentials will be generated from this secret
# once the credentials are generated, this secret is no longer required
---
apiVersion: v1
kind: Secret
metadata:
name: my-user-password
namespace: test
type: Opaque
stringData:
password: test1234