fix(logging): drop longhorn storageClassName on fluentd PVC#154
Merged
Conversation
…ter default Logging CR referenced storageClassName: longhorn, but Longhorn was removed from k8s-talos earlier; only `vsan` (vSphere CSI, also cluster default) is available. Fluentd-0 stuck Pending with unbound PVC. Removing the explicit storageClassName lets the PVC bind against the default StorageClass — vsan handles ReadWriteOnce + WaitForFirstConsumer for the 5Gi fluentd buffer fine. Note on StatefulSet volumeClaimTemplates immutability: the existing STS may fail to reconcile this change directly; if so, delete the STS (operator recreates) + delete the Pending PVCs. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughFluentd aggregator PVC configuration updated to remove hardcoded ChangesFluentd Storage Configuration
🎯 1 (Trivial) | ⏱️ ~3 minutes Comment |
Varashi
added a commit
that referenced
this pull request
May 27, 2026
#155) Operator refused to reconcile the storageClassName drop (#154) with: "Object has to be recreated, but refusing to remove without explicitly being told so. Use logging.spec. enableRecreateWorkloadOnImmutableFieldChange to move on." StatefulSet.spec.volumeClaimTemplates is k8s-immutable. The operator's safety check is meant for production deployments with strict durability — leaving the flag false there forces a manual sts delete + PVC migration. For this homelab where the fluentd buffer is at most a few minutes of replay, the data-loss-on- recreate trade is fine. Setting the flag lets the operator delete + recreate the STS so fluentd-0 finally binds a PVC against the cluster default StorageClass (vsan) instead of the missing longhorn class. Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hotfix #2 for the logging migration. Logging CR referenced
storageClassName: longhornbut Longhorn was removed from k8s-talos previously — onlyvsan(vSphere CSI, default) exists. Fluentd-0 stuck Pending on unbound PVC for 8 min. Dropping the explicit class lets the default apply.Summary by CodeRabbit