Skip to content

Instantly share code, notes, and snippets.

@markround
Created February 8, 2022 11:10
Show Gist options
  • Save markround/3d70ab65a2be5d4ff6e045c836d083e8 to your computer and use it in GitHub Desktop.
Save markround/3d70ab65a2be5d4ff6e045c836d083e8 to your computer and use it in GitHub Desktop.
fluentbit additions
# fluent-bit k14s objects managed by kapp-controller
---
apiVersion: kappctrl.k14s.io/v1alpha1
kind: App
metadata:
name: fluent-bit
namespace: tanzu-system-logging
annotations:
tmc.cloud.vmware.com/managed: "false"
spec:
syncPeriod: 5m
serviceAccountName: fluent-bit-extension-sa
fetch:
- image:
url: projects.registry.vmware.com/tkg/tkg-extensions-templates:v1.3.1_vmware.1
template:
- ytt:
paths:
- tkg-extensions/common
- tkg-extensions/logging/fluent-bit
inline:
pathsFrom:
- secretRef:
name: fluent-bit-data-values
paths:
custom-overlay.yaml: |
#@ load("@ytt:overlay", "overlay")
#@ load("/values.star", "values")
#@overlay/match by=overlay.subset({"kind": "ConfigMap", "metadata": {"name": "fluent-bit-config"}})
---
data:
input-systemd.conf: |
[INPUT]
Name systemd
Tag kube_systemd.*
Path /var/log/journal
DB /var/log/flb_kube_systemd.db
Systemd_Filter _SYSTEMD_UNIT=kubelet.service
Systemd_Filter _SYSTEMD_UNIT=containerd.service
Systemd_Filter _SYSTEMD_UNIT=sshd.service
Systemd_Filter _SYSTEMD_UNIT=systemd-journald.service
Read_From_Tail On
Strip_Underscores On
deploy:
- kapp:
rawOptions: ["--wait-timeout=5m"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment