You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using kwatch to monitor PVC usage, even when the PVC exceeds the threshold set in the configuration, there are no logs or notifications. Even though the pvcMonitor appears to be initialized and started in the code, it doesn't produce logs that it has started, unlike the pod-crash controller which does log its start-up.
To Reproduce
Steps to reproduce the behavior:
Set up kwatch as per the README instructions.
Configure the pvcMonitor to be enabled with a threshold (e.g., 80%).
Use a PVC in a namespace that kwatch is monitoring and fill it to exceed the threshold.
Observe that there are no logs or notifications indicating the PVC threshold breach.
Expected behavior
When a PVC's usage exceeds the specified threshold, I expected kwatch to send a notification. Additionally, I expected some logs indicating the pvcMonitor has started and is actively monitoring PVCs.
Actual behavior
There are no logs indicating pvcMonitor initialization or start-up, and there are no notifications sent out even when PVC usage exceeds the set threshold.
After reviewing the code, the PVC monitoring feature seems to be initiated correctly. I also modified the ClusterRole to ensure the necessary permissions for monitoring PVCs and PVs were granted. The current permissions for the kwatch ClusterRole include:
Despite these configurations and permissions, the PVC monitoring feature does not appear to be working. I'm seeking guidance on troubleshooting this issue further or any potential fixes.
Describe the bug
When using
kwatch
to monitor PVC usage, even when the PVC exceeds the threshold set in the configuration, there are no logs or notifications. Even though thepvcMonitor
appears to be initialized and started in the code, it doesn't produce logs that it has started, unlike the pod-crash controller which does log its start-up.To Reproduce
Steps to reproduce the behavior:
kwatch
as per the README instructions.pvcMonitor
to be enabled with a threshold (e.g., 80%).kwatch
is monitoring and fill it to exceed the threshold.Expected behavior
When a PVC's usage exceeds the specified threshold, I expected
kwatch
to send a notification. Additionally, I expected some logs indicating thepvcMonitor
has started and is actively monitoring PVCs.Actual behavior
There are no logs indicating
pvcMonitor
initialization or start-up, and there are no notifications sent out even when PVC usage exceeds the set threshold.Version/Commit
[email protected]
Kubernetes Cluster: v1.25.6
Additional Information:
After reviewing the code, the PVC monitoring feature seems to be initiated correctly. I also modified the ClusterRole to ensure the necessary permissions for monitoring PVCs and PVs were granted. The current permissions for the kwatch ClusterRole include:
Despite these configurations and permissions, the PVC monitoring feature does not appear to be working. I'm seeking guidance on troubleshooting this issue further or any potential fixes.
Configuration for Reproduction
Here is the relevant portion of my
config.yaml
:Here are the Kubernetes resources I set up to reproduce the issue:
Verification of PVC Usage
To demonstrate the PVC usage, I executed a
du
command in thetest-pod
:kubectl exec test-pod -n kwatch -- du -sh /usr/share/nginx/html 91M /usr/share/nginx/html
The text was updated successfully, but these errors were encountered: