Skip to content

Added YAML configuration to kubernetes installation docs. Fixes #1737. #1738

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

Merged
merged 1 commit into from
Jun 17, 2025
Merged
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
66 changes: 63 additions & 3 deletions installation/kubernetes.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,49 @@ spec:

### Configure Fluent Bit

Assuming the basic volume configuration described previously, you can apply the
following configuration to start logging:
Assuming the basic volume configuration described previously, you can apply one of the following configurations to start logging:

{% tabs %}
{% tab title="fluent-bit.yaml" %}

```yaml
parsers:
- name: docker
format: json
time_key: time
time_format: '%Y-%m-%dT%H:%M:%S.%L'
time_keep: true

pipeline:
inputs:
- name: tail
tag: kube.*
path: 'C:\\var\\log\\containers\\*.log'
parser: docker
db: 'C:\\fluent-bit\\tail_docker.db'
mem_buf_limit: 7MB
refresh_interval: 10

- name: tail
tag: kube.error
path: 'C:\\k\\kubelet.err.log'
db: 'C:\\fluent-bit\\tail_kubelet.db'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we need a volume for this today too otherwise it's ephemeral

Copy link
Collaborator Author

@eschabell eschabell Jun 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it does, it's in the docs just above this code section.


filters:
- name: kubernetes
match: kube.*
kube_url: 'https://kubernetes.default.svc.cluster.local:443'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need for this

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we remove the filters section, then it's not doing what the conf example is doing?


outputs:
- name: stdout
match: '*'
```

{% endtab %}

{% tab title="fluent-bit.conf" %}

```text
fluent-bit.conf: |
[SERVICE]
Parsers_File C:\\fluent-bit\\parsers.conf
Expand Down Expand Up @@ -185,6 +224,9 @@ parsers.conf: |
Time_Keep On
```

{% endtab %}
{% endtabs %}

### Mitigate unstable network on Windows pods

Windows pods often lack working DNS immediately after boot
Expand All @@ -198,10 +240,28 @@ starts up:
By default, Fluent Bit waits for three minutes (30 seconds x 6 times). If it's not enough
for you, update the configuration as follows:

```python
{% tabs %}
{% tab title="fluent-bit.yaml" %}

```yaml
filters:
- name: kubernetes
...
dns_retries: 10
dns_wait_time: 30
```

{% endtab %}

{% tab title="fluent-bit.conf" %}

```text
[filter]
Name kubernetes
...
DNS_Retries 10
DNS_Wait_Time 30
```

% endtab %}
{% endtabs %}