The system uses two types of persistent storage:
-
MongoDB Storage (
mongodb-storage.yml):- Stores the MongoDB database
- 1GB capacity
- ReadWriteOnce access mode
-
ConfigMap Storage:
- Genomic data
- Plant configurations
- Sensor data templates
Note: Plant data and images are mounted directly from the host using hostPath volumes in the StatefulSet configuration.
The system uses a ConfigMap to store genomic data for different plant varieties:
- Create the ConfigMap from JSON file:
kubectl create configmap genomic-data --from-file=genomic_data=data/genomic_data.json- Verify the ConfigMap contents:
# View all variety IDs
kubectl get configmap genomic-data -o jsonpath='{.data.genomic_data}' | jq '.[].VarietyID'
# Expected output:
"11430"
"A3"
"A310"- View full genomic data:
kubectl get configmap genomic-data -o jsonpath='{.data.genomic_data}' | jq '.'