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

Deployment of Fluent-Bit from Helm charts #2701

Closed
alexandre-allard opened this issue Aug 3, 2020 · 0 comments · Fixed by #2723
Closed

Deployment of Fluent-Bit from Helm charts #2701

alexandre-allard opened this issue Aug 3, 2020 · 0 comments · Fixed by #2723
Assignees
Labels
complexity:easy Something that requires less than a day to fix kind:enhancement New feature or request topic:log Anything related to log centralization system

Comments

@alexandre-allard
Copy link
Contributor

alexandre-allard commented Aug 3, 2020

Component: salt, charts, log, build

Why this is needed:
See #2668
This implementation may not be the final one, as we will probably change it afterwards to use the Fluent-Bit Operator, but we need it to have a functional logging pipeline for now.

What should be done:

Implementation proposal (strongly recommended):
As we already did for other add-ons (Prometheus, Dex, ...), we can use the charts provided by Fluent-Bit to ease the generation of Salt formulas, using the charts/renderer.py script:

  helm repo add loki https://grafana.github.io/loki/charts
  helm repo update
  helm fetch -d charts --untar loki/fluent-bit
  ./charts/render.py fluent-bit --namespace metalk8s-logging \
    charts/fluent-bit.yaml charts/fluent-bit/ \
    > salt/metalk8s/addons/fluent-bit/deployed/charts.sls

Test plan:
Ensure the fluent-bit pods are running (1 per node).

@alexandre-allard alexandre-allard added kind:enhancement New feature or request topic:log Anything related to log centralization system labels Aug 3, 2020
@alexandre-allard alexandre-allard self-assigned this Aug 3, 2020
@alexandre-allard alexandre-allard added complexity:medium Something that requires one or few days to fix complexity:easy Something that requires less than a day to fix and removed complexity:medium Something that requires one or few days to fix labels Aug 5, 2020
alexandre-allard added a commit that referenced this issue Aug 6, 2020
  helm repo add loki https://grafana.github.io/loki/charts
  helm repo update
  helm fetch -d charts --untar loki/fluent-bit

Refs: #2701
alexandre-allard added a commit that referenced this issue Aug 6, 2020
this file is used to overwrite default values.

Refs: #2701
alexandre-allard added a commit that referenced this issue Aug 6, 2020
  ./charts/render.py fluent-bit --namespace metalk8s-logging \
    charts/fluent-bit.yaml charts/fluent-bit/ \
    > salt/metalk8s/addons/logging/fluent-bit/deployed/chart.sls

Refs: #2701
TeddyAndrieux pushed a commit that referenced this issue Aug 6, 2020
  helm repo add loki https://grafana.github.io/loki/charts
  helm repo update
  helm fetch -d charts --untar loki/fluent-bit

Refs: #2701
TeddyAndrieux pushed a commit that referenced this issue Aug 6, 2020
this file is used to overwrite default values.

Refs: #2701
TeddyAndrieux pushed a commit that referenced this issue Aug 6, 2020
TeddyAndrieux pushed a commit that referenced this issue Aug 6, 2020
  ./charts/render.py fluent-bit --namespace metalk8s-logging \
    charts/fluent-bit.yaml charts/fluent-bit/ \
    > salt/metalk8s/addons/logging/fluent-bit/deployed/chart.sls

Refs: #2701
@TeddyAndrieux TeddyAndrieux self-assigned this Aug 6, 2020
TeddyAndrieux pushed a commit that referenced this issue Aug 6, 2020
  helm repo add loki https://grafana.github.io/loki/charts
  helm repo update
  helm fetch -d charts --untar loki/fluent-bit

Refs: #2701
TeddyAndrieux pushed a commit that referenced this issue Aug 6, 2020
this file is used to overwrite default values.

Refs: #2701
TeddyAndrieux pushed a commit that referenced this issue Aug 6, 2020
TeddyAndrieux pushed a commit that referenced this issue Aug 6, 2020
  ./charts/render.py fluent-bit --namespace metalk8s-logging \
    charts/fluent-bit.yaml charts/fluent-bit/ \
    > salt/metalk8s/addons/logging/fluent-bit/deployed/chart.sls

Refs: #2701
TeddyAndrieux pushed a commit that referenced this issue Aug 7, 2020
  helm repo add loki https://grafana.github.io/loki/charts
  helm repo update
  helm fetch -d charts --untar loki/fluent-bit

Refs: #2701
TeddyAndrieux pushed a commit that referenced this issue Aug 7, 2020
this file is used to overwrite default values.

Refs: #2701
alexandre-allard added a commit that referenced this issue Aug 19, 2020
spawn a container that logs a single line
then try to retrieve it from Loki API

Refs: #2701
alexandre-allard added a commit that referenced this issue Aug 20, 2020
  helm repo add loki https://grafana.github.io/loki/charts
  helm repo update
  helm fetch -d charts --untar loki/fluent-bit

Refs: #2701
alexandre-allard added a commit that referenced this issue Aug 20, 2020
this file is used to overwrite default values.

Refs: #2701
alexandre-allard added a commit that referenced this issue Aug 20, 2020
  ./charts/render.py fluent-bit --namespace metalk8s-logging \
    --remove-manifest ConfigMap fluent-bit \
    charts/fluent-bit.yaml charts/fluent-bit/ \
    > salt/metalk8s/addons/logging/fluent-bit/deployed/chart.sls

Refs: #2701
alexandre-allard added a commit that referenced this issue Aug 20, 2020
alexandre-allard added a commit that referenced this issue Aug 20, 2020
spawn a container that logs a single line
then try to retrieve it from Loki API

Refs: #2701
alexandre-allard added a commit that referenced this issue Aug 20, 2020
We write all logs to each Loki replicas,
so we need to define one Output block,
in Fluent Bit configuration, per loki instance.

Refs: #2701
alexandre-allard added a commit that referenced this issue Aug 20, 2020
spawn a container that logs a single line
then try to retrieve it from Loki API

Refs: #2701
alexandre-allard added a commit that referenced this issue Aug 20, 2020
We write all logs to each Loki replicas,
so we need to define one Output block,
in Fluent Bit configuration, per loki instance.

Refs: #2701
alexandre-allard added a commit that referenced this issue Aug 24, 2020
alexandre-allard added a commit that referenced this issue Aug 24, 2020
spawn a container that logs a single line
then try to retrieve it from Loki API

Refs: #2701
alexandre-allard added a commit that referenced this issue Aug 24, 2020
We write all logs to each Loki replicas,
so we need to define one Output block,
in Fluent Bit configuration, per loki instance.

Refs: #2701
ChengYanJin pushed a commit that referenced this issue Sep 3, 2020
  helm repo add loki https://grafana.github.io/loki/charts
  helm repo update
  helm fetch -d charts --untar loki/fluent-bit

Refs: #2701
ChengYanJin pushed a commit that referenced this issue Sep 3, 2020
this file is used to overwrite default values.

Refs: #2701
ChengYanJin pushed a commit that referenced this issue Sep 3, 2020
ChengYanJin pushed a commit that referenced this issue Sep 3, 2020
  ./charts/render.py fluent-bit --namespace metalk8s-logging \
    --remove-manifest ConfigMap fluent-bit \
    charts/fluent-bit.yaml charts/fluent-bit/ \
    > salt/metalk8s/addons/logging/fluent-bit/deployed/chart.sls

Refs: #2701
ChengYanJin pushed a commit that referenced this issue Sep 3, 2020
ChengYanJin pushed a commit that referenced this issue Sep 3, 2020
ChengYanJin pushed a commit that referenced this issue Sep 3, 2020
spawn a container that logs a single line
then try to retrieve it from Loki API

Refs: #2701
ChengYanJin pushed a commit that referenced this issue Sep 3, 2020
We write all logs to each Loki replicas,
so we need to define one Output block,
in Fluent Bit configuration, per loki instance.

Refs: #2701
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
complexity:easy Something that requires less than a day to fix kind:enhancement New feature or request topic:log Anything related to log centralization system
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants