-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[kots]: add fluent-bit as log collector
- Loading branch information
Simon Emms
committed
Jun 15, 2022
1 parent
cd0ef75
commit 129c3a2
Showing
5 changed files
with
91 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Copyright (c) 2022 Gitpod GmbH. All rights reserved. | ||
# Licensed under the MIT License. See License-MIT.txt in the project root for license information. | ||
|
||
apiVersion: v2 | ||
description: Gitpod fluent-bit | ||
name: fluent-bit | ||
version: 0.20.2 | ||
dependencies: | ||
- name: fluent-bit | ||
version: 0.20.2 | ||
repository: https://fluent.github.io/helm-charts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# Copyright (c) 2022 Gitpod GmbH. All rights reserved. | ||
# Licensed under the MIT License. See License-MIT.txt in the project root for license information. | ||
|
||
fluent-bit: | ||
extraVolumes: | ||
- name: collector | ||
hostPath: | ||
path: /gitpod | ||
type: DirectoryOrCreate | ||
|
||
extraVolumeMounts: | ||
- name: collector | ||
mountPath: /gitpod | ||
|
||
extraContainers: | ||
- name: kots | ||
image: busybox:1 | ||
command: | ||
- sh | ||
- -c | ||
args: | ||
- while true; do echo "waiting" && sleep 60; done | ||
volumeMounts: | ||
- name: collector | ||
mountPath: /gitpod | ||
readOnly: true | ||
|
||
labels: | ||
app: gitpod | ||
component: gitpod-log-collector | ||
|
||
podLabels: | ||
app: gitpod | ||
component: gitpod-log-collector | ||
|
||
# Config requires four space indentations | ||
config: | ||
inputs: | | ||
[INPUT] | ||
Name tail | ||
Path /var/log/containers/*.log | ||
Parser docker | ||
Tag kube.* | ||
Mem_Buf_Limit 5MB | ||
Skip_Long_Lines On | ||
filters: | | ||
[FILTER] | ||
Name stdout | ||
outputs: | | ||
[OUTPUT] | ||
Name file | ||
Match * | ||
Mkdir true | ||
Path /gitpod/log-collector | ||
Format plain |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Copyright (c) 2022 Gitpod GmbH. All rights reserved. | ||
# Licensed under the MIT License. See License-MIT.txt in the project root for license information. | ||
|
||
apiVersion: kots.io/v1beta1 | ||
kind: HelmChart | ||
metadata: | ||
name: fluent-bit | ||
spec: | ||
chart: | ||
name: fluent-bit | ||
chartVersion: 0.20.2 | ||
helmVersion: v3 | ||
useHelmInstall: true | ||
weight: 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters