diff --git a/fleet/lib/fluent-operator/client/clusteroutput-fluentbit-loki.yaml b/fleet/lib/fluent-operator/client/clusteroutput-fluentbit-loki.yaml new file mode 100644 index 000000000..dc804618a --- /dev/null +++ b/fleet/lib/fluent-operator/client/clusteroutput-fluentbit-loki.yaml @@ -0,0 +1,29 @@ +--- +apiVersion: fluentbit.fluent.io/v1alpha2 +kind: ClusterOutput +metadata: + labels: + fluentbit.fluent.io/enabled: "true" + name: fluentbit-output-loki + namespace: loki-dev +spec: + matchRegex: (?:kube|service)\.(.*) + loki: + host: loki.kueyen.dev.lsst.org + port: 443 + tls: + verify: true + labels: + - job="fluentbit" + - k8s_namespace="$kubernetes['namespace_name']" + - k8s_pod_name="$kubernetes['pod_name']" + - k8s_container_name="$kubernetes['container_name']" + - k8s_host="$kubernetes['host']" + label_keys: + - app + - release + - component + line_format: json + auto_kubernetes_labels: false + retry_limit: 3 + buffer_size: 100MB \ No newline at end of file diff --git a/fleet/lib/fluent-operator/client/kustomization.yaml b/fleet/lib/fluent-operator/client/kustomization.yaml new file mode 100644 index 000000000..2a2826b84 --- /dev/null +++ b/fleet/lib/fluent-operator/client/kustomization.yaml @@ -0,0 +1,3 @@ +--- +resources: + - clusteroutput-fluentbit-loki.yaml \ No newline at end of file diff --git a/fleet/lib/fluent-operator/fleet.yaml b/fleet/lib/fluent-operator/fleet.yaml new file mode 100644 index 000000000..f5d7d7da6 --- /dev/null +++ b/fleet/lib/fluent-operator/fleet.yaml @@ -0,0 +1,22 @@ +--- +defaultNamespace: &name fluent-operator +labels: + bundle: *name +namespaceLabels: + lsst.io/discover: "true" +kustomize: + dir: client +helm: + chart: *name + releaseName: *name + repo: https://fluent.github.io/helm-charts + version: 2.7.0 + waitForJobs: true + values: + fluentbit: + logLevel: debug + filter: + kubernetes: + bufferSize: 100MB + systemd: + enable: true \ No newline at end of file