kind: DaemonSet
apiVersion: apps/v1
metadata:
name: fluent-bit
namespace: kubesphere-logging-system
labels:
app.kubernetes.io/name: fluent-bit
annotations:
deprecated.daemonset.template.generation: '1'
spec:
selector:
matchLabels:
app.kubernetes.io/name: fluent-bit
template:
metadata:
name: fluent-bit
namespace: kubesphere-logging-system
creationTimestamp: null
labels:
app.kubernetes.io/name: fluent-bit
spec:
volumes:
- name: varlibcontainers
hostPath:
path: /var/lib/docker/containers
type: ''
- name: config
secret:
secretName: fluent-bit-config
defaultMode: 420
- name: varlogs
hostPath:
path: /var/log
type: ''
- name: systemd
hostPath:
path: /var/log/journal
type: ''
- name: positions
emptyDir: {}
containers:
- name: fluent-bit
image: 'registry.cn-beijing.aliyuncs.com/kubesphereio/fluent-bit:v1.8.11'
ports:
- name: metrics
containerPort: 2020
protocol: TCP
env:
- name: NODE_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: spec.nodeName
resources:
limits:
cpu: 500m
memory: 200Mi
requests:
cpu: 10m
memory: 25Mi
volumeMounts:
- name: varlibcontainers
readOnly: true
mountPath: /var/lib/docker/containers
- name: config
readOnly: true
mountPath: /fluent-bit/config
- name: varlogs
readOnly: true
mountPath: /var/log/
- name: systemd
readOnly: true
mountPath: /var/log/journal
- name: positions
mountPath: /fluent-bit/tail
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
imagePullPolicy: IfNotPresent
restartPolicy: Always
terminationGracePeriodSeconds: 30
dnsPolicy: ClusterFirst
serviceAccountName: fluent-bit
serviceAccount: fluent-bit
securityContext: {}
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: node-role.kubernetes.io/edge
operator: DoesNotExist
schedulerName: default-scheduler
tolerations:
- operator: Exists
updateStrategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 1
maxSurge: 0
revisionHistoryLimit: 10
欢迎来撩 : 汇总all