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

Bump fluent-bit chart version #3364

Merged
merged 5 commits into from
May 11, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
- Bump CoreDNS version to 1.8.0
(PR[#3354](https://github.com/scality/metalk8s/pull/3354))

- [#3279](https://github.com/scality/metalk8s/issues/3279) - Bump
fluent-bit chart version from 2.0.1 to 2.2.0
fluent-bit-plugin-loki image has been bump accordingly from v1.6.0-amd64
to v2.1.0-amd64 (PR[#3364](https://github.com/scality/metalk8s/pull/3364))

- [#3279](https://github.com/scality/metalk8s/issues/3279) - Bump
loki chart version from 2.1.0 to 2.5.0.
loki image has been bump accordingly from 2.0.0 to 2.2.0
Expand Down
4 changes: 2 additions & 2 deletions buildchain/buildchain/versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,8 @@ def _version_prefix(version: str, prefix: str = "v") -> str:
),
Image(
name="fluent-bit-plugin-loki",
version="1.6.0-amd64",
digest="sha256:cb1cd95d0fcf76b626623684f0c8b204a9f773443650c7b3d243b96c29ff7020",
version="2.1.0-amd64",
digest="sha256:bedd17176ced6106404606d31f6d6bfa56b10d769074c0b624fb0bc470b081c2",
),
)

Expand Down
7 changes: 3 additions & 4 deletions charts/fluent-bit/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
apiVersion: v1
appVersion: v2.0.0
description: Uses fluent-bit Loki go plugin for gathering logs and sending them to
Loki
appVersion: v2.1.0
description: Uses fluent-bit Loki go plugin for gathering logs and sending them to Loki
home: https://grafana.com/loki
icon: https://raw.githubusercontent.com/grafana/loki/master/docs/sources/logo.png
kubeVersion: ^1.10.0-0
Expand All @@ -11,4 +10,4 @@ maintainers:
name: fluent-bit
sources:
- https://github.com/grafana/loki
version: 2.0.1
version: 2.2.0
19 changes: 14 additions & 5 deletions charts/fluent-bit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,23 @@

This chart install the Fluent Bit application to ship logs to Loki. It defines daemonset on a [Kubernetes](http://kubernetes.io) cluster using the [Helm](https://helm.sh) package manager.

## Get Repo Info

```console
helm repo add grafana https://grafana.github.io/helm-charts
helm repo update
```

_See [helm repo](https://helm.sh/docs/helm/helm_repo/) for command documentation._

## Installing the Chart

> If you don't have `Helm` installed locally, or `Tiller` installed in your Kubernetes cluster, read the [Using Helm](https://docs.helm.sh/using_helm/) documentation to get started.
To install the chart with the release name `my-release` using our helm repository:

```bash
helm repo add loki https://grafana.github.io/loki/charts
helm upgrade --install my-release loki/fluent-bit \
helm repo add grafana https://grafana.github.io/helm-charts
helm upgrade --install my-release grafana/fluent-bit \
--set loki.serviceName=loki.default.svc.cluster.local
```

Expand All @@ -20,7 +29,7 @@ The command deploys Fluent Bit on the Kubernetes cluster with the default config
To configure the chart to send to [Grafana Cloud](https://grafana.com/products/cloud) use:

```bash
helm upgrade --install my-release loki/fluent-bit \
helm upgrade --install my-release grafana/fluent-bit \
--set loki.serviceName=logs-us-west1.grafana.net,loki.servicePort=80,loki.serviceScheme=https \
--set loki.user=2830,loki.password=1234
```
Expand All @@ -30,7 +39,7 @@ helm upgrade --install my-release loki/fluent-bit \
To install a custom tag use the following command:

```bash
helm upgrade --install my-release loki/fluent-bit \
helm upgrade --install my-release grafana/fluent-bit \
--set image.tag=<custom tag>
```

Expand All @@ -39,7 +48,7 @@ The full list of available tags on [docker hub](https://cloud.docker.com/u/grafa
Alternatively you can install the full [Loki stack](../loki-stack) (Loki + Fluent Bit) using:

```bash
helm upgrade --install my-release loki/loki-stack \
helm upgrade --install my-release grafana/loki-stack \
--set fluent-bit.enabled=true,promtail.enabled=false
```

Expand Down
2 changes: 1 addition & 1 deletion charts/fluent-bit/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ data:
K8S-Logging.Exclude {{ .Values.config.k8sLoggingExclude }}
K8S-Logging.Parser {{ .Values.config.k8sLoggingParser }}
[Output]
Name loki
Name grafana-loki
Match *
{{- if and .Values.loki.user .Values.loki.password }}
Url {{ .Values.loki.serviceScheme }}://{{ .Values.loki.user }}:{{ .Values.loki.password }}@{{ include "loki.serviceName" . }}:{{ .Values.loki.servicePort }}{{ .Values.loki.servicePath }}
Expand Down
2 changes: 1 addition & 1 deletion charts/fluent-bit/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ deploymentStrategy: RollingUpdate

image:
repository: grafana/fluent-bit-plugin-loki
tag: 1.6.0-amd64
tag: 2.1.0-amd64
pullPolicy: IfNotPresent
## Optionally specify an array of imagePullSecrets.
## Secrets must be present in the namespace.
Expand Down
22 changes: 11 additions & 11 deletions salt/metalk8s/addons/logging/fluent-bit/deployed/chart.sls
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ metadata:
app.kubernetes.io/managed-by: salt
app.kubernetes.io/name: fluent-bit
app.kubernetes.io/part-of: metalk8s
chart: fluent-bit-2.0.1
chart: fluent-bit-2.2.0
heritage: metalk8s
release: fluent-bit
name: fluent-bit
Expand Down Expand Up @@ -51,7 +51,7 @@ metadata:
app.kubernetes.io/managed-by: salt
app.kubernetes.io/name: fluent-bit
app.kubernetes.io/part-of: metalk8s
chart: fluent-bit-2.0.1
chart: fluent-bit-2.2.0
heritage: metalk8s
release: fluent-bit
name: fluent-bit
Expand All @@ -65,7 +65,7 @@ metadata:
app.kubernetes.io/managed-by: salt
app.kubernetes.io/name: fluent-bit
app.kubernetes.io/part-of: metalk8s
chart: fluent-bit-2.0.1
chart: fluent-bit-2.2.0
heritage: metalk8s
release: fluent-bit
name: fluent-bit-clusterrole
Expand All @@ -89,7 +89,7 @@ metadata:
app.kubernetes.io/managed-by: salt
app.kubernetes.io/name: fluent-bit
app.kubernetes.io/part-of: metalk8s
chart: fluent-bit-2.0.1
chart: fluent-bit-2.2.0
heritage: metalk8s
release: fluent-bit
name: fluent-bit-clusterrolebinding
Expand All @@ -111,7 +111,7 @@ metadata:
app.kubernetes.io/managed-by: salt
app.kubernetes.io/name: fluent-bit
app.kubernetes.io/part-of: metalk8s
chart: fluent-bit-2.0.1
chart: fluent-bit-2.2.0
heritage: metalk8s
release: fluent-bit
name: fluent-bit
Expand All @@ -134,7 +134,7 @@ metadata:
app.kubernetes.io/managed-by: salt
app.kubernetes.io/name: fluent-bit
app.kubernetes.io/part-of: metalk8s
chart: fluent-bit-2.0.1
chart: fluent-bit-2.2.0
heritage: metalk8s
release: fluent-bit
name: fluent-bit
Expand All @@ -155,7 +155,7 @@ metadata:
app.kubernetes.io/managed-by: salt
app.kubernetes.io/name: fluent-bit
app.kubernetes.io/part-of: metalk8s
chart: fluent-bit-2.0.1
chart: fluent-bit-2.2.0
heritage: metalk8s
release: fluent-bit
name: fluent-bit-headless
Expand All @@ -180,7 +180,7 @@ metadata:
app.kubernetes.io/managed-by: salt
app.kubernetes.io/name: fluent-bit
app.kubernetes.io/part-of: metalk8s
chart: fluent-bit-2.0.1
chart: fluent-bit-2.2.0
heritage: metalk8s
release: fluent-bit
name: fluent-bit
Expand All @@ -193,7 +193,7 @@ spec:
template:
metadata:
annotations:
checksum/config: 3bed338de62965258211f9a86544e9b6437e23d31787a38f9051656e4a6e68c9
checksum/config: 7f6f78193f3a6250a31fdc23769553e5afb6a6831286b03f617c2853a535ff75
prometheus.io/path: /api/v1/metrics/prometheus
prometheus.io/port: '2020'
prometheus.io/scrape: 'true'
Expand All @@ -203,7 +203,7 @@ spec:
spec:
affinity: {}
containers:
- image: {% endraw -%}{{ build_image_name("fluent-bit-plugin-loki", False) }}{%- raw %}:1.6.0-amd64
- image: {% endraw -%}{{ build_image_name("fluent-bit-plugin-loki", False) }}{%- raw %}:2.1.0-amd64
imagePullPolicy: IfNotPresent
name: fluent-bit-loki
ports:
Expand Down Expand Up @@ -266,7 +266,7 @@ metadata:
app.kubernetes.io/managed-by: salt
app.kubernetes.io/name: fluent-bit
app.kubernetes.io/part-of: metalk8s
chart: fluent-bit-2.0.1
chart: fluent-bit-2.2.0
heritage: metalk8s
metalk8s.scality.com/monitor: ''
name: fluent-bit
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ Create fluent-bit ConfigMap:
Remove logtag
{%- for index in range(loki.spec.deployment.replicas) %}
[Output]
Name loki
Name grafana-loki
Match *
Url http://loki-{{ index }}:3100/loki/api/v1/push
TenantID ""
Expand Down