Repository navigation
Add Milvus Minio Docs - #1041
Conversation
Signed-off-by: biswasurmi <urmi@appscode.com>
📝 WalkthroughWalkthroughThe Milvus quickstart now provisions object storage through the MinIO Operator and creates ChangesMilvus storage configuration
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 5
🧹 Nitpick comments (1)
docs/guides/milvus/quickstart/prerequisites.md (1)
51-53: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winPin the MinIO chart versions and document the cluster prerequisite.
The commands at Line 53 and Line 59 install unversioned charts. The rendered Tenant and compatibility behavior can change without a documentation update. The upstream MinIO procedure states that Operator v7.1.1 requires Kubernetes 1.30 or later. (github.com)
Pin tested versions for
minio/operatorandminio/tenant. Document the minimum Kubernetes version.Also applies to: 59-66
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@docs/guides/milvus/quickstart/prerequisites.md` around lines 51 - 53, Pin the chart versions used by the MinIO operator installation and the Tenant installation commands to the tested minio/operator and minio/tenant versions, and document Kubernetes 1.30 or later as the prerequisite for Operator v7.1.1. Update both command blocks consistently while preserving the existing repository and namespace setup.Source: MCP tools
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@docs/guides/milvus/quickstart/prerequisites.md`:
- Around line 232-241: Update the cleanup steps in the Milvus quickstart to
delete or halt the Milvus resources before uninstalling the milvus-minio Tenant
and deleting the milvus-storage-config Secret. Ensure the documented order
prevents a live database from retaining references to the removed storage
dependency.
- Around line 232-241: Update the MinIO cleanup section after deleting the
Tenant to verify retained MinIO PVCs, then provide a manual kubectl command to
remove those tenant PVCs. Add a clear warning that deleting the retained storage
permanently destroys its objects, before proceeding to delete the storage config
secret.
- Around line 97-100: Update the prerequisite instructions for both Secret
creation paths: explicitly save each displayed YAML manifest to its
corresponding file, then provide the kubectl apply command for that file. Ensure
the default path creates and applies milvus-storage-config.yaml, and the
S3/MinIO path likewise includes executable save and apply steps.
- Around line 59-65: Update the MinIO Tenant setup commands and related
Secret/AppBinding examples around the tenant configuration to keep TLS enabled
by default: remove the setting that disables automatic certificate requests, and
ensure the Milvus connection uses useSSL: "true" with the required CA
credentials/trust. If the examples intentionally remain HTTP, explicitly label
the setup demo-only and unencrypted, consistently across all referenced
examples.
- Around line 59-66: Update the MinIO Tenant Helm command to set
tenant.pools[0].storageClassName explicitly to the local-path StorageClass used
by the Milvus manifests, or document that users must replace it with their
cluster’s compatible StorageClass.
---
Nitpick comments:
In `@docs/guides/milvus/quickstart/prerequisites.md`:
- Around line 51-53: Pin the chart versions used by the MinIO operator
installation and the Tenant installation commands to the tested minio/operator
and minio/tenant versions, and document Kubernetes 1.30 or later as the
prerequisite for Operator v7.1.1. Update both command blocks consistently while
preserving the existing repository and namespace setup.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: 7d94b97b-3926-4492-a44e-73f2292ac5c0
📒 Files selected for processing (27)
docs/guides/milvus/autoscaler/compute/guide.mddocs/guides/milvus/autoscaler/storage/guide.mddocs/guides/milvus/concepts/milvus.mddocs/guides/milvus/monitoring/using-prometheus-operator.mddocs/guides/milvus/monitoring/yamls/distributed.yamldocs/guides/milvus/monitoring/yamls/standalone.yamldocs/guides/milvus/quickstart/distributed.mddocs/guides/milvus/quickstart/prerequisites.mddocs/guides/milvus/quickstart/standalone.mddocs/guides/milvus/quickstart/yamls/distributed.yamldocs/guides/milvus/quickstart/yamls/minio.yamldocs/guides/milvus/quickstart/yamls/standalone.yamldocs/guides/milvus/recommendation/guide.mddocs/guides/milvus/recommendation/yamls/distributed.yamldocs/guides/milvus/recommendation/yamls/standalone.yamldocs/guides/milvus/reconfigure-tls/guide.mddocs/guides/milvus/reconfigure/guide.mddocs/guides/milvus/restart/guide.mddocs/guides/milvus/rotate-auth/guide.mddocs/guides/milvus/scaling/horizontal-scaling/guide.mddocs/guides/milvus/scaling/vertical-scaling/guide.mddocs/guides/milvus/storage-migration/guide.mddocs/guides/milvus/tls/guide.mddocs/guides/milvus/tls/yamls/distributed.yamldocs/guides/milvus/tls/yamls/standalone.yamldocs/guides/milvus/update-version/guide.mddocs/guides/milvus/volume-expansion/guide.md
💤 Files with no reviewable changes (1)
- docs/guides/milvus/quickstart/yamls/minio.yaml
| $ helm upgrade --install --namespace "demo" milvus-minio minio/tenant \ | ||
| --set tenant.name=milvus-minio \ | ||
| --set tenant.pools[0].servers=1 \ | ||
| --set tenant.pools[0].volumesPerServer=1 \ | ||
| --set tenant.pools[0].size=1Gi \ | ||
| --set tenant.certificate.requestAutoCert=false \ | ||
| --set tenant.buckets[0].name="mlv-release" \ |
There was a problem hiding this comment.
🔒 Security & Privacy | 🟠 Major | 🏗️ Heavy lift
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
set -euo pipefail
echo "Locate and inspect relevant docs and manifests:"
fd -a 'prerequisites\.md$|values\.yaml$|Secret' . | sed 's#^\./##' | head -200
echo
echo "Relevant doc sections:"
if [ -f docs/guides/milvus/quickstart/prerequisites.md ]; then
sed -n '1,160p' docs/guides/milvus/quickstart/prerequisites.md | cat -n
fi
echo
echo "Search for Minio tenant/credentials/SSL in docs:"
rg -n "minio/tenant|milvus-minio|useSSL|certificate|requestAutoCert|bucket|bucketEndpoint|minio\.|SECRET|MINIO" docs -S || true
echo
echo "Search for Minio tenant chart values in repo (if vendored/committed):"
rg -n "requestAutoCert|useSSL|certificate|MINIO|MINIO_ACCESS_KEY|MINIO_SECRET_KEY|tenants|pools" . -g '!docs/guides/milvus/quickstart/prerequisites.md' -S || trueRepository: kubedb/docs
Length of output: 50368
🌐 Web query:
minio tenant chart values.yaml certificate.requestAutoCert useSSL default
💡 Result:
In the MinIO Tenant Helm chart, the default behavior for TLS configuration is as follows: requestAutoCert: The default value for certificate.requestAutoCert is true [1][2][3]. This setting enables automatic Kubernetes-based TLS certificate generation and signing by the MinIO Operator [4][5]. useSSL: There is no explicit field named useSSL in the MinIO Tenant values.yaml or the underlying Tenant CRD specification [1][4][6]. TLS is enabled by default because requestAutoCert is true [1][4]. If you wish to disable TLS, you must explicitly set requestAutoCert to false and ensure no externalCertSecret is provided; if both are omitted or false, the MinIO Tenant deploys without TLS enabled [4][7][3]. Note on Implementation: While the values.yaml file provided in the MinIO Operator repository shows requestAutoCert: true as a commented-out or active default [2][8], the actual Go template logic in the Helm chart (specifically in tenant.yaml) may use a default value if the key is missing [6]. According to the repository's template, it is configured as requestAutoCert: {{ dig "certificate" "requestAutoCert" false. }}, which effectively treats a missing value as false during the template rendering process, although the chart's intended "out-of-the-box" behavior relies on the provided values.yaml which explicitly sets it to true [2][8][6]. Always verify your specific version's values.yaml file to confirm the active default [1][7].
Citations:
- 1: https://minio.community/community/minio-object-store/operations/deployments/k8s-deploy-minio-tenant-helm-on-kubernetes.html
- 2: https://github.com/minio/operator/blob/master/helm/tenant/values.yaml
- 3: https://minio.community/community/minio-object-store/reference/tenant-chart-values.html
- 4: https://minio.community/community/minio-object-store/reference/operator-crd.html
- 5: https://github.com/minio/operator/blob/master/docs/tenant_crd.adoc
- 6: https://github.com/minio/operator/blob/3b9d10f2/helm/tenant/templates/tenant.yaml
- 7: https://minio.pigsty.io/reference/tenant-chart-values
- 8: https://raw.githubusercontent.com/minio/operator/refs/heads/master/helm/tenant/values.yaml
🏁 Script executed:
#!/bin/bash
set -euo pipefail
echo "Relevant prerequisites section without broad fd output:"
sed -n '1,150p' docs/guides/milvus/quickstart/prerequisites.md | cat -n
echo
echo "Focused repo search for Minio tenant config and Milvus storage settings:"
rg -n "minio/tenant|milvus-minio|requestAutoCert|externalCertSecret|useSSL|tenant\.certificate|tenant\.credentials|secretRef|minio_endpoint|bucketEndpoint|objectStore|s3" docs/guides/milvus docs -S || true
echo
echo "Check referenced upstream values template if network/temp dir are available:"
temp="$(mktemp -d)"
curl -fsSL https://raw.githubusercontent.com/minio/operator/master/helm/tenant/templates/tenant.yaml -o "$temp/tenant.yaml"
curl -fsSL https://raw.githubusercontent.com/minio/operator/master/helm/tenant/values.yaml -o "$temp/values.yaml"
rg -n "requestAutoCert|useSSL|clientTrustCerts|certificate|externalCertSecret|insecureSkipTLSVerify" "$temp/tenant.yaml" "$temp/values.yaml" || trueRepository: kubedb/docs
Length of output: 50368
Security Misconfiguration (CWE-319): Cleartext Transmission of Sensitive Information
Reachability: Internal
Keep the MinIO Tenant TLS flow enabled by default.
Setting tenant.certificate.requestAutoCert=false disables autosigned certificates unless tenant.certificate.externalCertSecret is configured in the same doc. If TLS is not configured at the tenant, this guide should also make useSSL: "true" explicit and provide CA credentials/trust for the Milvus AppBinding; otherwise, state that the setup is demo-only and uses unencrypted HTTP for credential-bearing requests.
This applies to the MinIO Tenant commands and Secret/AppBinding examples around lines 59-65, 89-95, and 116-129.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@docs/guides/milvus/quickstart/prerequisites.md` around lines 59 - 65, Update
the MinIO Tenant setup commands and related Secret/AppBinding examples around
the tenant configuration to keep TLS enabled by default: remove the setting that
disables automatic certificate requests, and ensure the Milvus connection uses
useSSL: "true" with the required CA credentials/trust. If the examples
intentionally remain HTTP, explicitly label the setup demo-only and unencrypted,
consistently across all referenced examples.
Source: MCP tools
| $ helm upgrade --install --namespace "demo" milvus-minio minio/tenant \ | ||
| --set tenant.name=milvus-minio \ | ||
| --set tenant.pools[0].servers=1 \ | ||
| --set tenant.pools[0].volumesPerServer=1 \ | ||
| --set tenant.pools[0].size=1Gi \ | ||
| --set tenant.certificate.requestAutoCert=false \ | ||
| --set tenant.buckets[0].name="mlv-release" \ | ||
| --set tenant.pools[0].name="default" |
There was a problem hiding this comment.
🩺 Stability & Availability | 🟠 Major | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
set -euo pipefail
echo "== file excerpt =="
sed -n '1,90p' docs/guides/milvus/quickstart/prerequisites.md
echo
echo "== nearby milvus local-path refs =="
rg -n 'local-path|storageClassName|minio/tenant|milvus-minio|requestAutoCert|buckets' docs/guides docs 2>/dev/null || true
echo
echo "== charts/values if present =="
git ls-files | rg '(^|/)(values\.yaml|Chart\.yaml|README\.md)$' | head -100Repository: kubedb/docs
Length of output: 50368
🏁 Script executed:
#!/bin/bash
set -euo pipefail
echo "== prerequisites excerpt =="
sed -n '1,110p' docs/guides/milvus/quickstart/prerequisites.md
echo
echo "== milvus quickstart files =="
git ls-files 'docs/guides/milvus/quickstart/*'
echo
echo "== milvus quickstart local-path/storageClassName refs =="
rg -n 'local-path|storageClassName|helm upgrade --install|minio/tenant|milvus-minio|requestAutoCert|buckets' docs/guides/milvus/quickstart -SRepository: kubedb/docs
Length of output: 5090
🌐 Web query:
MinIO Kubernetes Operator Tenant StorageClass tenant pools storageClassName documentation
💡 Result:
In the MinIO Kubernetes Operator, storage configuration for a Tenant is managed through the pools definition within the Tenant CRD [1][2]. Each pool in the pools array requires a volumeClaimTemplate, which defines how the Persistent Volume Claims (PVCs) for that specific pool are provisioned [3][4]. The storageClassName is specified within the volumeClaimTemplate.spec of each pool [4][5]. Configuration Structure: The Tenant YAML structure for defining storage in a pool generally follows this hierarchy [3][4]: spec: pools: - name: servers: volumesPerServer: volumeClaimTemplate: spec: storageClassName: accessModes: - ReadWriteOnce resources: requests: storage: Key Considerations: 1. Requirement for VolumeBindingMode: MinIO Tenants strictly require that the StorageClass uses a volumeBindingMode of WaitForFirstConsumer [6][2]. Using Immediate can cause issues during PVC binding and is strongly discouraged [6][2]. 2. Storage Class Selection: If a storageClassName is not explicitly provided in the volumeClaimTemplate, the Kubernetes cluster will default to the cluster's default StorageClass [6][2]. If that default class does not support the Tenant's requirements (such as binding mode or volume provisioning), the Tenant may fail to deploy [6][2][7]. 3. Multiple Pools: Since a Tenant can have multiple server pools, each pool can independently define its own volumeClaimTemplate, allowing you to use different storageClassName values for different pools within the same Tenant [1][7]. 4. Best Practices: MinIO recommends using ReadWriteOnce access mode for all volumes and suggests setting a reclaim policy of Retain for the associated Persistent Volumes [8]. Additionally, formatting volumes as XFS is recommended for best performance [8]. For Helm deployments, while some chart configurations may include a simplified top-level storageClassName parameter for convenience [9][7], the underlying mechanism remains the definition of the storageClassName within the volumeClaimTemplate spec for each pool [3][5].
Citations:
- 1: https://github.com/minio/operator/blob/master/docs/tenant_crd.adoc
- 2: https://operator.min.io/
- 3: https://github.com/minio/operator/blob/master/helm/tenant/templates/tenant.yaml
- 4: https://github.com/minio/operator/blob/3b9d10f2/examples/kustomization/base/tenant.yaml
- 5: https://minio.pigsty.io/operations/deployments/k8s-deploy-minio-tenant-on-kubernetes
- 6: https://github.com/minio/minio-operator/blob/master/README.md
- 7: https://minio.community/community/minio-object-store/operations/deployments/k8s-deploy-minio-tenant-helm-on-kubernetes.html
- 8: https://minio.community/community/minio-object-store/operations/deployments/k8s-minio-tenants.html
- 9: https://github.com/minio/operator/blob/master/helm/tenant/values.yaml
🏁 Script executed:
#!/bin/bash
set -euo pipefail
echo "== standalone guide excerpt =="
sed -n '1,150p' docs/guides/milvus/quickstart/standalone.md
echo
echo "== distributed guide excerpt =="
sed -n '1,120p' docs/guides/milvus/quickstart/distributed.md
echo
echo "== standalone/distributed manifests =="
sed -n '1,90p' docs/guides/milvus/quickstart/yamls/standalone.yaml docs/guides/milvus/quickstart/yamls/distributed.yamlRepository: kubedb/docs
Length of output: 10898
Set the MinIO Tenant StorageClass explicitly.
The MinIO Tenant command does not set tenant.pools[0].storageClassName, so it uses the cluster default. Milvus uses local-path, and MinIO Tenant PVCs require a compatible StorageClass. Set the same StorageClass used by the Milvus manifests, or document the required replacement.
Proposed fix
--set tenant.pools[0].volumesPerServer=1 \
--set tenant.pools[0].size=1Gi \
+ --set tenant.pools[0].storageClassName=local-path \
--set tenant.certificate.requestAutoCert=false \📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| $ helm upgrade --install --namespace "demo" milvus-minio minio/tenant \ | |
| --set tenant.name=milvus-minio \ | |
| --set tenant.pools[0].servers=1 \ | |
| --set tenant.pools[0].volumesPerServer=1 \ | |
| --set tenant.pools[0].size=1Gi \ | |
| --set tenant.certificate.requestAutoCert=false \ | |
| --set tenant.buckets[0].name="mlv-release" \ | |
| --set tenant.pools[0].name="default" | |
| $ helm upgrade --install --namespace "demo" milvus-minio minio/tenant \ | |
| --set tenant.name=milvus-minio \ | |
| --set tenant.pools[0].servers=1 \ | |
| --set tenant.pools[0].volumesPerServer=1 \ | |
| --set tenant.pools[0].size=1Gi \ | |
| --set tenant.pools[0].storageClassName=local-path \ | |
| --set tenant.certificate.requestAutoCert=false \ | |
| --set tenant.buckets[0].name="mlv-release" \ | |
| --set tenant.pools[0].name="default" |
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@docs/guides/milvus/quickstart/prerequisites.md` around lines 59 - 66, Update
the MinIO Tenant Helm command to set tenant.pools[0].storageClassName explicitly
to the local-path StorageClass used by the Milvus manifests, or document that
users must replace it with their cluster’s compatible StorageClass.
Source: MCP tools
| Apply the secret: | ||
|
|
||
| ```bash | ||
| $ kubectl apply -f milvus-storage-config.yaml |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟠 Major | ⚡ Quick win
Make both Secret creation paths executable.
The default path shows a YAML manifest and then applies milvus-storage-config.yaml, but it never creates that file. The existing S3/MinIO path shows another YAML manifest but provides no apply command. A reader who follows either path literally cannot create the required Secret.
Add explicit save and apply steps for both manifests.
Also applies to: 112-129
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@docs/guides/milvus/quickstart/prerequisites.md` around lines 97 - 100, Update
the prerequisite instructions for both Secret creation paths: explicitly save
each displayed YAML manifest to its corresponding file, then provide the kubectl
apply command for that file. Ensure the default path creates and applies
milvus-storage-config.yaml, and the S3/MinIO path likewise includes executable
save and apply steps.
| 3. Delete the MinIO Tenant: | ||
|
|
||
| ```bash | ||
| $ kubectl delete -f https://github.com/kubedb/docs/raw/{{< param "info.version" >}}/docs/guides/milvus/quickstart/yamls/minio.yaml | ||
| $ helm uninstall milvus-minio -n demo | ||
| ``` | ||
|
|
||
| 4. Delete leftover MinIO PVCs if you are keeping the namespace: | ||
| 4. Delete the storage config secret: | ||
|
|
||
| ```bash | ||
| $ kubectl delete pvc -n demo export-my-release-minio-0 export-my-release-minio-1 export-my-release-minio-2 export-my-release-minio-3 | ||
| $ kubectl delete secret -n demo milvus-storage-config |
There was a problem hiding this comment.
🩺 Stability & Availability | 🟠 Major | ⚡ Quick win
Remove or halt Milvus before deleting its storage dependency.
The separate cleanup path uninstalls the MinIO Tenant and deletes milvus-storage-config, but it does not delete or halt the Milvus resources. The quickstart manifests still reference this Secret. This leaves a live database without its object-storage dependency.
Add a database deletion or halt step before removing the Tenant and Secret.
🧰 Tools
🪛 markdownlint-cli2 (0.23.2)
[warning] 235-235: Dollar signs used before commands without showing output
(MD014, commands-show-output)
[warning] 241-241: Dollar signs used before commands without showing output
(MD014, commands-show-output)
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@docs/guides/milvus/quickstart/prerequisites.md` around lines 232 - 241,
Update the cleanup steps in the Milvus quickstart to delete or halt the Milvus
resources before uninstalling the milvus-minio Tenant and deleting the
milvus-storage-config Secret. Ensure the documented order prevents a live
database from retaining references to the removed storage dependency.
🩺 Stability & Availability | 🟡 Minor | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
set -euo pipefail
echo "Locate target file"
fd -a 'prerequisites\.md$' . | sed 's#^\./##' | rg 'docs/guides/milvus|milvus/quickstart/prerequisites.md' || true
echo
echo "Target excerpt"
if [ -f docs/guides/milvus/quickstart/prerequisites.md ]; then
wc -l docs/guides/milvus/quickstart/prerequisites.md
sed -n '210,255p' docs/guides/milvus/quickstart/prerequisites.md
fi
echo
echo "Search surrounding MinIO instructions"
rg -n -C 4 'helm uninstall milvus-minio|kubectl delete secret milvus-storage-config|delete|PVC|pv|PersistentVolumeClaim|storage config|MinIO Tenant|minio' docs/guides/milvus/quickstart/prerequisites.md docs/guides/milvus || trueRepository: kubedb/docs
Length of output: 50369
🌐 Web query:
MinIO Kubernetes upstream delete MinIO Tenant PVC PersistentVolumeClaim reclaim policy retained documents
💡 Result:
When a MinIO Tenant is deleted on Kubernetes, the MinIO Operator intentionally does not automatically delete the associated Persistent Volume Claims (PVCs) [1][2][3]. This design choice is intended to prevent accidental data loss for production workloads [2][3]. Key considerations regarding PVCs and the Reclaim Policy include: 1. Manual Cleanup: Because the MinIO Operator does not perform cascading deletion of PVCs, you must manually delete them if you wish to remove the storage when deleting a tenant [1][2]. You can target them using labels, for example: kubectl -n delete pvc -l v1.min.io/tenant= [2] 2. Role of Reclaim Policy: The Reclaim Policy of the Persistent Volume (PV) determines what happens to the underlying storage resource after the PVC is deleted [4]. If the policy is set to 'Retain', the PV and its data remain even after the PVC is deleted [4][5]. MinIO explicitly recommends setting a 'Retain' reclaim policy for StorageClasses used with MinIO Tenants to protect against accidental data loss [6][5]. 3. Tenant Expansion Note: During operations like Tenant expansion, which may involve recreating the StatefulSet pods and their PVCs, it is critical to ensure that PVs are configured with a 'Retain' policy [5]. If the policy is set to 'Delete' (or 'Recycle'), the underlying data may be destroyed automatically when the PVC is deleted by Kubernetes during the expansion process [5]. In summary, the MinIO Operator prioritizes data safety by leaving PVCs orphaned upon tenant deletion [1][3]. If you require automatic deletion for non-production or ephemeral environments, you must manage this manually or consider the implications of your storage class configuration [1][7][2].
Citations:
- 1: Remove Reclaim Storage minio/operator#2203
- 2: Remove Reclaim Storage minio/operator#2203
- 3: asset cleanup when tenant is deleted minio/operator#589
- 4: https://minio.community/community/minio-object-store/operations/deployments/k8s-delete-minio-tenant-on-kubernetes.html
- 5: https://github.com/minio/operator/blob/master/docs/expansion.md
- 6: https://minio.community/community/minio-object-store/operations/deployments/k8s-minio-tenants.html
- 7: No support for declarative cleanup of PVCs minio/operator#1803
🌐 Web query:
MinIO Kubernetes delete MinIO tenant PersistentVolumeClaims retain warning
💡 Result:
When you delete a MinIO Tenant in Kubernetes, the MinIO Operator intentionally leaves the associated PersistentVolumeClaims (PVCs) intact [1][2]. This is a deliberate design choice to prevent accidental data loss [1][2][3]. Because MinIO is frequently used for sensitive, production-grade data, the Operator does not perform an automatic "cascade delete" of storage assets when the Tenant resource is removed [1][2][3]. If you wish to remove the storage associated with a Tenant, you must manually delete the PVCs [1][3][4]. A common method to do this is using the following command, which targets the PVCs labeled with the specific tenant name [1][3][4]: kubectl -n delete pvc -l v1.min.io/tenant= Key points regarding this behavior: - Design Philosophy: The MinIO Operator adheres to standard Kubernetes practices where StatefulSet-managed PVCs are not automatically deleted upon resource deletion, placing the responsibility on the user to ensure data is intentionally removed [1][3][4]. - StorageClass Reclaim Policy: While the MinIO Operator does not delete the PVCs, the underlying storage behavior (what happens to the data once the PVC is gone) is governed by the Reclaim Policy of the StorageClass associated with your Persistent Volumes (PVs) [5]. If the policy is set to Retain, the physical data on the storage backend remains even after the PVC is deleted [5]. - Recovery: The decision to keep PVCs and Secrets is also intended to facilitate potential recovery of the tenant if the resource was deleted inadvertently [2]. Always verify that you have backups or that the data is no longer needed before manually deleting PVCs, as this action is irreversible and will result in the loss of all objects stored in that tenant [5][1][3].
Citations:
- 1: Remove Reclaim Storage minio/operator#2203
- 2: asset cleanup when tenant is deleted minio/operator#589
- 3: Remove Reclaim Storage minio/operator#2203
- 4: https://github.com/nirantaraai/operator-1/blob/master/docs/tenant-storage-deletion.md
- 5: https://minio.community/community/minio-object-store/operations/deployments/k8s-delete-minio-tenant-on-kubernetes.html
Document MinIO PVC retention during cleanup.
MinIO Tenant PVCs are not removed when the Tenant is deleted. Add a verification step and manual cleanup command for the tenant PVCs with a warning that deleting retained storage can destroy objects.
🧰 Tools
🪛 markdownlint-cli2 (0.23.2)
[warning] 235-235: Dollar signs used before commands without showing output
(MD014, commands-show-output)
[warning] 241-241: Dollar signs used before commands without showing output
(MD014, commands-show-output)
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@docs/guides/milvus/quickstart/prerequisites.md` around lines 232 - 241,
Update the MinIO cleanup section after deleting the Tenant to verify retained
MinIO PVCs, then provide a manual kubectl command to remove those tenant PVCs.
Add a clear warning that deleting the retained storage permanently destroys its
objects, before proceeding to delete the storage config secret.
Source: MCP tools
|
Visit the preview URL for this PR (updated for commit 7e1e326): https://kubedb-v2-hugo--pr1041-mv-minio-a919wmg8.web.app (expires Wed, 12 Aug 2026 11:02:36 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: 0f29ae8ae0bd54a99bf2b223b6833be47acd5943 |
Summary by CodeRabbit
milvus-storage-configobject-storage secret.