Skip to content

Commit

Permalink
(site/dev) Add fluentbit operator client to kueyen
Browse files Browse the repository at this point in the history
  • Loading branch information
gseriche committed Jan 17, 2025
1 parent ea33a83 commit 3d036d1
Show file tree
Hide file tree
Showing 4 changed files with 73 additions and 0 deletions.
32 changes: 32 additions & 0 deletions fleet/lib/fluent-operator/client/clusteroutput-fluentbit-loki.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
apiVersion: fluentbit.fluent.io/v1alpha2
kind: ClusterOutput
metadata:
labels:
fluentbit.fluent.io/enabled: "true"
name: fluentbit-output-loki
namespace: fluent-operator
spec:
matchRegex: (?:kube|service)\.(.*)
loki:
host: loki.kueyen.dev.lsst.org
port: 443
tls:
verify: false
labels:
- job=fluentbit
- k8s_namespace=$kubernetes['namespace_name']
- k8s_pod_name=$kubernetes['pod_name']
- k8s_container_name=$kubernetes['container_name']
- node=${NODE_NAME}
- cluster=${CLUSTER_NAME}
- k8s_container_image=$kubernetes['container_image']
label_keys:
- app
- release
- component
- k8s-app
line_format: json
auto_kubernetes_labels: false
retry_limit: 3
buffer_size: 100MB
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: cluster-metadata
namespace: fluent-operator
data:
CLUSTER_NAME: ${CLUSTER_NAME} # Se reemplazará durante la instalación
4 changes: 4 additions & 0 deletions fleet/lib/fluent-operator/client/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
resources:
- clusteroutput-fluentbit-loki.yaml
- configmap-cluster-metadata.yaml
30 changes: 30 additions & 0 deletions fleet/lib/fluent-operator/fleet.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
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:
extraEnv:
- name: NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- name: CLUSTER_NAME
valueFrom:
configMapKeyRef:
name: cluster-metadata
key: CLUSTER_NAME

targetCustomizations:
- name: kueyen
clusterName: kueyen

0 comments on commit 3d036d1

Please sign in to comment.