cosmo0920 / fluent-bit-go-loki

[Deprecated] The predessor of fluent-bit output plugin for Loki. https://github.com/grafana/loki
Apache License 2.0
40 stars 6 forks source link

How to using on Kubernetes #8

Closed Serrvosky closed 4 years ago

Serrvosky commented 5 years ago

Problem

Hello,

How can I use this plugin on Kubernetes? ow I can i instaill it on my fluentbit pods?

Using Fluentd and loki plugin versions

cosmo0920 commented 5 years ago

I'm not k8s guy. I have no idea how to use this plugin on k8s.

cosmo0920 commented 5 years ago

I have no idea what pod you are using to run fluent-bit. But we can running fluent-git-go-loki plugin on Docker container like this PR: https://github.com/cosmo0920/fluent-bit-go-loki/pull/10

To run k8s, we should use this built image in our k8s yaml settings:

      containers:
      - name: fluent-bit
        image: fluent-bit/loki-plugin # Your built image
cosmo0920 commented 4 years ago

This plugin is merged into loki upstream. You can use k8s with the following instruction: https://github.com/grafana/loki/tree/master/cmd/fluent-bit#kubernetes