--- apiVersion: apps/v1 kind: DaemonSet metadata: labels: app.kubernetes.io/component: Agent app.kubernetes.io/instance: vector-agent app.kubernetes.io/name: vector-agent app.kubernetes.io/version: 0.42.0-distroless-libc name: vector-agent namespace: vector spec: revisionHistoryLimit: 10 selector: matchLabels: app.kubernetes.io/component: Agent app.kubernetes.io/instance: vector-agent app.kubernetes.io/name: vector-agent template: metadata: labels: app.kubernetes.io/component: Agent app.kubernetes.io/instance: vector-agent app.kubernetes.io/name: vector-agent vector.dev/exclude: 'true' spec: containers: - args: - '--config-dir' - /etc/vector/ env: - name: K8S_CLUSTER value: d0-dev - name: BOOTSTRAP_SERVERS value: 'my-cluster-kafka-bootstrap.kafka:9092' - name: VECTOR_LOG value: info - name: VECTOR_SELF_NODE_NAME valueFrom: fieldRef: apiVersion: v1 fieldPath: spec.nodeName - name: VECTOR_SELF_POD_NAME valueFrom: fieldRef: apiVersion: v1 fieldPath: metadata.name - name: VECTOR_SELF_POD_NAMESPACE valueFrom: fieldRef: apiVersion: v1 fieldPath: metadata.namespace - name: PROCFS_ROOT value: /host/proc - name: SYSFS_ROOT value: /host/sys image: 'harbor.uenpay.com/base/vector:0.42.0-distroless-libc' imagePullPolicy: IfNotPresent name: vector-agent ports: - containerPort: 9090 name: prom-exporter protocol: TCP resources: {} terminationMessagePath: /dev/termination-log terminationMessagePolicy: File volumeMounts: - mountPath: /vector-data-dir name: data - mountPath: /etc/vector/ name: config readOnly: true - mountPath: /var/log/ name: var-log - mountPath: /var/lib name: var-lib readOnly: true - mountPath: /host/proc name: procfs readOnly: true - mountPath: /host/sys name: sysfs readOnly: true dnsPolicy: ClusterFirst restartPolicy: Always schedulerName: default-scheduler securityContext: {} serviceAccount: vector serviceAccountName: vector terminationGracePeriodSeconds: 60 volumes: - name: config projected: defaultMode: 420 sources: - configMap: name: vector-agent-config - hostPath: path: /var/lib/vector type: '' name: data - hostPath: path: /var/log/ type: '' name: var-log - hostPath: path: /var/lib/ type: '' name: var-lib - hostPath: path: /proc type: '' name: procfs - hostPath: path: /sys type: '' name: sysfs updateStrategy: rollingUpdate: maxSurge: 0 maxUnavailable: 1 type: RollingUpdate