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

Allow disabling /var/lib/docker/containers mountPath #1425

Closed
reakaleek opened this issue Nov 21, 2024 · 1 comment
Closed

Allow disabling /var/lib/docker/containers mountPath #1425

reakaleek opened this issue Nov 21, 2024 · 1 comment

Comments

@reakaleek
Copy link

Details

When using logsCollection.enabled: true on a GKE Autopilot cluster I get the following error.

one or more objects failed to apply, reason: error when patching "/dev/shm/2609233200": 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 varlibdockercontainers used in container opentelemetry-collector uses path /var/lib/docker/containers which is not allowed in Autopilot. Allowed path prefixes for hostPath volumes are: [/var/log/]."]} Requested by user: 'system:serviceaccount:argocd:argocd-application-controller', groups: 'system:serviceaccounts,system:serviceaccounts:argocd,system:authenticated'.. Retrying attempt #2 at 9:39AM.

Request

Allow to disable the mounting of the mountPath /var/lib/docker/containers

@reakaleek reakaleek changed the title Allow disable /var/lib/docker/containers mountPath Allow disabling /var/lib/docker/containers mountPath Nov 21, 2024
@TylerHelmuth
Copy link
Member

@reakaleek the best option for you is to not use the preset and to configure the filelog receiver and the corresponding kubernetes settings yourself to meet your needs. The preset is a best attempt for most situations, but cannot cover all scenarios.

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

No branches or pull requests

2 participants