Hi everybody,
I'm in the process of installing Component Pack 8 on my Kubernetes cluster running the supported version V1.24.1 using containerd CRI. The cluster has 2 worker nodes and 1 master node.
I build the MongoDB 5 image and try to get it running with helm. However I always get the same error and can't really decipher what is wrong. Bootstrap and PVCs are already deployed and working. The Kubernetes cluster has no problems and all workers are ready.
Here is the error:
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 3m29s default-scheduler Successfully assigned connections/mongo5-0 to worker.softwerk.de
Normal Pulled 3m24s kubelet Container image "ubuntu:20.04" already present on machine
Normal Created 3m24s kubelet Created container init-chmod-data5
Normal Started 3m24s kubelet Started container init-chmod-data5
Normal Pulled 3m23s kubelet Container image "hclcr.io/cnx/middleware-mongodb5-sidecar:latest" already present on machine
Normal Started 3m22s kubelet Started container mongo5-sidecar
Normal Created 3m22s kubelet Created container mongo5-sidecar
Normal Pulled 3m5s (x3 over 3m23s) kubelet Container image "hclcr.io/cnx/middleware-mongodb5:0.1.1-20221013-124108" already present on machine
Normal Created 3m5s (x3 over 3m23s) kubelet Created container mongo5
Normal Started 3m4s (x3 over 3m23s) kubelet Started container mongo5
Normal Killing 3m4s (x3 over 3m23s) kubelet FailedPostStartHook
Warning FailedPostStartHook 3m4s (x3 over 3m23s) kubelet Exec lifecycle hook ([bash -c sleep 30 && mongo --tls --tlsCertificateKeyFile /etc/mongodb/x509/user_admin.pem --tlsCAFile /etc/mongodb/x509/mongo-CA-cert.crt --host mongo5-0.mongo5.connections.svc.cluster.local --eval "rs.initiate({_id:\"rs0\", members:[{_id:0, host:\"mongo5-0.mongo5.connections.svc.cluster.local:27017\"}]})"]) for Container "mongo5" in Pod "mongo5-0_connections(a72bd516-6f63-41bb-921f-39c36fd6bbe1)" failed - error: command 'bash -c sleep 30 && mongo --tls --tlsCertificateKeyFile /etc/mongodb/x509/user_admin.pem --tlsCAFile /etc/mongodb/x509/mongo-CA-cert.crt --host mongo5-0.mongo5.connections.svc.cluster.local --eval "rs.initiate({_id:\"rs0\", members:[{_id:0, host:\"mongo5-0.mongo5.connections.svc.cluster.local:27017\"}]})"' exited with 137: , message: ""
Warning BackOff 3m3s (x4 over 3m20s) kubelet Back-off restarting failed container
Does anybody have the same problem or did you deploy Component Pack 8 without probelms?
Regards
Florian Stahl