crowdsecurity / helm-charts

CrowdSec community kubernetes helm charts
MIT License
27 stars 33 forks source link

Mount /var/log as readOnly #107

Closed antoninguyot closed 1 year ago

antoninguyot commented 1 year ago

The agent DaemonSet needs to mount /var/log to parse node logs. However, on GKE Autopilot clusters, hostPath mounts are required to be in readOnly mode, making the crowdsec chart unusable on the platform:

admission webhook "warden-validating.common-webhooks.networking.gke.io" denied the request: GKE Warden rejected the request because it violates one or more constraints. 
Violations details: {"[denied by autogke-no-write-mode-hostpath]":["hostPath volume varlog in container crowdsec-agent is accessed in write mode; disallowed in Autopilot."]}

Mounting /var/log as readOnly would fix the issue and doesn't seem to affect how Crowdsec works.

he2ss commented 1 year ago

Thanks for the contribution :+1: