Export inventory to MongoDB¶
Prerequisites¶
A running operator, MongoDB, and the inventory-mongodb-uri Secret described in the sample.
Apply¶
kubectl apply -f config/samples/kollect_v1alpha1_kollectdatabasesink_mongodb.yaml
Verify¶
kubectl wait --for=condition=ConnectionVerified kdb/mongodb-inventory-demo -n default --timeout=90s
kubectl describe kdb mongodb-inventory-demo -n default
If it didn't work¶
Check the URI Secret, database permissions, TLS trust, and provisioning.mode.
Cleanup¶
kubectl delete -f config/samples/kollect_v1alpha1_kollectdatabasesink_mongodb.yaml