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
Add support for GKE Autopilot #9100
Comments
Note: that this cannot be easily resolved by just changing the directories to use some subdirectory under |
In GKE Autopilot clusters, only
If you want to get other logs (like Autopilot system logs), you can use Google PubSub instead of the directory scraping of Promtail. So in the promtail helm values, set: defaultVolumeMounts:
- name: pods
mountPath: /var/log/pods
readOnly: true
- name: run
mountPath: /run/promtail
defaultVolumes:
- name: pods
hostPath:
path: /var/log/pods
- name: run
emptyDir: { } |
So does this configuration work on GKE Autopilot? Can I set |
Is your feature request related to a problem? Please describe.
The problem is that, currently promtail (default) values.yml configuration uses HostPaths docker volumes:
/run/promtail
,/var/lib/docker/containers
,/var/log/pods
but the GKE (with its default security) Autopilot only allows HostPaths mounts under/var/log
. So when I try to deploy the promtail onto the GKE Autopilot I get:And this is the promtail default configuration, where it specifies the hostPaths:
Describe the solution you'd like
I believe the issue should be resolved between Grafana and GCP to support this.
Describe alternatives you've considered
Alternative is probably to deploy Promtail outside of the GKE cluster, but this is undesired.
The text was updated successfully, but these errors were encountered: