...

Text file src/edge-infra.dev/config/pallets/o11y/fluentbit/base/fluentbit.yaml

Documentation: edge-infra.dev/config/pallets/o11y/fluentbit/base

     1apiVersion: fluentbit.fluent.io/v1alpha2
     2kind: FluentBit
     3metadata:
     4  name: fluent-bit
     5  labels:
     6    app.kubernetes.io/name: fluent-bit
     7spec:
     8  labels:
     9    app.kubernetes.io/component: logs
    10  dnsPolicy: ClusterFirstWithHostNet
    11  hostNetwork: true
    12  priorityClassName: edge-p4-operability-services
    13  volumes:
    14  - name: edge-info
    15    configMap:
    16      name: edge-info
    17      optional: true
    18  - name: edge-siem
    19    configMap:
    20      name: edge-siem
    21      optional: true
    22  - name: log-levels
    23    configMap:
    24      name: log-levels
    25      optional: true
    26  - name: mnt
    27    hostPath:
    28      path: /mnt
    29  - name: varlog
    30    hostPath:
    31      path: /var/log
    32  - name: workload-siem
    33    configMap:
    34      name: workload-siem
    35      optional: true
    36  tolerations:
    37  - effect: NoSchedule
    38    key: node-role.kubernetes.io/master
    39    operator: Exists
    40  image: bzl://third_party/o11y:fluent_bit_container_push
    41  resources:
    42    limits:
    43      cpu: "750m"
    44      memory: 200Mi
    45    requests:
    46      cpu: 50m
    47      memory: 100Mi
    48  livenessProbe:
    49    httpGet:
    50      port: 32020
    51      path: /
    52  readinessProbe:
    53    httpGet:
    54      port: 32020
    55      path: /api/v1/health
    56  fluentBitConfigName: fluent-bit-config
    57  metricsPort: 32020
    58  positionDB:
    59    hostPath:
    60      path: /var/log/
    61  # RBAC Rules that are needed to allow fluent bit to use Kubelet
    62  rbacRules:
    63  - resources:
    64    - namespaces
    65    - pods
    66    - pods/log
    67    - services
    68    - nodes
    69    - nodes/proxy
    70    apiGroups:
    71    - ''
    72    verbs:
    73    - get
    74    - list
    75    - watch
    76  volumesMounts:
    77  - name: edge-info
    78    readOnly: true
    79    mountPath: /var/configs/edge-info
    80  - name: edge-siem
    81    readOnly: true
    82    mountPath: /var/configs/edge-siem
    83  - name: log-levels
    84    readOnly: true
    85    mountPath: /var/configs/log-levels
    86  - name: mnt
    87    readOnly: true
    88    mountPath: /mnt
    89  - name: varlog
    90    mountPath: /var/log
    91  - name: workload-siem
    92    readOnly: true
    93    mountPath: /var/configs/workload-siem

View as plain text