grafana / helm-charts

Apache License 2.0
1.58k stars 2.23k forks source link

PromTail Chart support for Windows Containers #325

Open trhumphries opened 3 years ago

trhumphries commented 3 years ago

Any plans for adding Windows container support for the Promtail Helm chart?

unguiculus commented 3 years ago

I have no experience with this, but I guess it shouldn't be that hard to implement. Feel free to open a PR.

trhumphries commented 3 years ago

I plan to other thing have priority for now. I hope to get back to it within the next couple of weeks.

sch1ldkr0ete commented 2 years ago

Any updates on this? Keen to have a helm chart for windows and happy to contribute.

vmasule commented 2 years ago

Hello, any updates on this. or is there an work around on this??? For all linux based pods logs are coming fine but no windows pod logs and we are very close to go-live.

mloskot commented 1 year ago

I guess, blocker is the Windows container image with Loki. Ideally, if it is based on nanoserver. See also https://github.com/grafana/loki/issues/7787

Here is a workaround documented, with servercore, https://github.com/grafana/loki/issues/2221#issuecomment-662198963

ofgirichardsonb commented 1 month ago

After installing with Helm, the container gets stuck in ContainerCreating with a stream of the following warnings:

  Warning  FailedMount  81s (x4 over 7m27s)  kubelet            (combined from similar events): MountVolume.SetUp failed for volume "kube-api-access-ns92c" : chown c:\var\lib\kubelet\pods\d6957cf3-60ac-419c-97f2-3586b629b528\volumes\kubernetes.io~projected\kube-api-access-ns92c\..2024_06_21_23_10_20.267955874\token: not supported by windows

I didn't tell it to mount this, the Helm chart doesn't let me turn this off (is it even a good idea?), but obviously you can't chown a file in Windows. What executes this chown command? I'd be happy to submit a PR if someone points me in the right direction.