# Source: fluent-bit/templates/service.yaml apiVersion: v1 kind: Service metadata: name: fluent-bit namespace: logging labels: helm.sh/chart: fluent-bit-0.47.9 app.kubernetes.io/name: fluent-bit app.kubernetes.io/instance: fluent-bit app.kubernetes.io/version: "3.1.7" app.kubernetes.io/managed-by: Helm spec: type: ClusterIP ports: - port: 2020 targetPort: http protocol: TCP name: http selector: app.kubernetes.io/name: fluent-bit app.kubernetes.io/instance: fluent-bit --- # Source: fluent-bit/templates/daemonset.yaml apiVersion: apps/v1 kind: DaemonSet metadata: name: fluent-bit namespace: logging labels: helm.sh/chart: fluent-bit-0.47.9 app.kubernetes.io/name: fluent-bit app.kubernetes.io/instance: fluent-bit app.kubernetes.io/version: "3.1.7" app.kubernetes.io/managed-by: Helm spec: selector: matchLabels: app.kubernetes.io/name: fluent-bit app.kubernetes.io/instance: fluent-bit template: metadata: labels: app.kubernetes.io/name: fluent-bit app.kubernetes.io/instance: fluent-bit annotations: checksum/config: 19631ad1090fbeaf145be8a25d43bf24621413639593494df4b243914c27e763 spec: serviceAccountName: fluent-bit hostNetwork: false dnsPolicy: ClusterFirst containers: - name: fluent-bit image: "cr.fluentbit.io/fluent/fluent-bit:3.1.7-debug" imagePullPolicy: IfNotPresent command: - /fluent-bit/bin/fluent-bit args: - --workdir=/fluent-bit/etc - --config=/fluent-bit/etc/conf/fluent-bit.conf ports: - name: http containerPort: 2020 protocol: TCP livenessProbe: httpGet: path: / port: http readinessProbe: httpGet: path: /api/v1/health port: http volumeMounts: - name: config mountPath: /fluent-bit/etc/conf - mountPath: /var/log name: varlog - mountPath: /var/lib/docker/containers name: varlibdockercontainers readOnly: true - mountPath: /etc/machine-id name: etcmachineid readOnly: true # Custom Add - name: runlogjournal mountPath: /run/log/journal readOnly: true # - name: dmesg # mountPath: /var/log/dmesg # readOnly: true - name: mnt mountPath: /mnt readOnly: true - name: fluentbitstate mountPath: /var/fluent-bit/state - name: file-save mountPath: /home/ubuntu # https://docs.fluentbit.io/manual/pipeline/filters/kubernetes resources: limits: cpu: 500m memory: 500Mi requests: cpu: 500m memory: 500Mi volumes: - name: config configMap: name: fluent-bit - name: varlog hostPath: path: /var/log - name: varlibdockercontainers hostPath: path: /var/lib/docker/containers - name: etcmachineid hostPath: path: /etc/machine-id type: File # Custom Add ## for cash - name: fluentbitstate hostPath: path: /var/fluent-bit/state - name: runlogjournal # 있음 hostPath: path: /run/log/journal # - name: dmesg # 있음 # hostPath: # path: /var/log/dmesg - name: mnt # 있음 hostPath: path: /mnt - name: file-save # 있음 hostPath: path: /home/ubuntu