apiVersion: apps/v1 kind: DaemonSet metadata: name: openobserve-otelcol namespace: openobserve labels: app.kubernetes.io/name: openobserve-otelcol spec: selector: matchLabels: app.kubernetes.io/name: openobserve-otelcol template: metadata: labels: app.kubernetes.io/name: openobserve-otelcol spec: serviceAccountName: openobserve-otelcol tolerations: - operator: Exists securityContext: runAsUser: 0 runAsGroup: 0 containers: - name: otelcol image: registry.nxtgauge.com/otelcol-contrib:0.105.0 args: ["--config=/conf/collector.yaml"] env: - name: ZO_ROOT_USER_EMAIL valueFrom: secretKeyRef: name: o2-openobserve-standalone key: ZO_ROOT_USER_EMAIL - name: ZO_ROOT_USER_PASSWORD valueFrom: secretKeyRef: name: o2-openobserve-standalone key: ZO_ROOT_USER_PASSWORD resources: requests: cpu: 50m memory: 128Mi limits: cpu: 500m memory: 512Mi volumeMounts: - name: conf mountPath: /conf readOnly: true - name: varlogcontainers mountPath: /var/log/containers readOnly: true - name: varlogpods mountPath: /var/log/pods readOnly: true volumes: - name: conf configMap: name: openobserve-otelcol-config items: - key: collector.yaml path: collector.yaml - name: varlogcontainers hostPath: path: /var/log/containers type: DirectoryOrCreate - name: varlogpods hostPath: path: /var/log/pods type: DirectoryOrCreate