Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swap volumeMount to set the deployment with both mountPath #73

Merged
merged 1 commit into from
Dec 28, 2023

Conversation

poornima-krishnasamy
Copy link
Contributor

@poornima-krishnasamy poornima-krishnasamy commented Dec 28, 2023

This PR simply swaps the volumeMount to trigger the deployment and set both volumeMount to the logrotate container.

A high-priority alert triggered for node Memory-Critical. While investigating, the modsec-controller has increased in the memory usage as shown in the grafana graph.
Screenshot 2023-12-28 at 14 33 54
This is because the logrotate didnot perform the audit log cleanup from the controller container and the volumeMount to var/log/audit on the logrotate container is missing in deployment of the modsec-controller.

The reason is, during the terraform apply for removing the duplicate VolumeMounts, the helm_release terraform missed to check that this is duplicate and removed the existing one. But the code still refers to both the volumeMounts.

@poornima-krishnasamy poornima-krishnasamy merged commit 24d3e19 into main Dec 28, 2023
7 checks passed
@poornima-krishnasamy poornima-krishnasamy deleted the volume-swap branch December 28, 2023 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants