github.com/oam-dev/kubevela@v1.9.11/references/docgen/def-doc/component/daemon.eg.md (about)

     1  ```yaml
     2  apiVersion: core.oam.dev/v1beta1
     3  kind: Application
     4  metadata:
     5    name: addon-node-exporter
     6    namespace: vela-system
     7  spec:
     8    components:
     9    - name: node-exporter
    10      type: daemon    
    11      properties:
    12        image: prom/node-exporter
    13        imagePullPolicy: IfNotPresent
    14        volumeMounts:
    15          hostPath:
    16          - mountPath: /host/sys
    17            mountPropagation: HostToContainer
    18            name: sys
    19            path: /sys
    20            readOnly: true
    21          - mountPath: /host/root
    22            mountPropagation: HostToContainer
    23            name: root
    24            path: /
    25            readOnly: true
    26      traits:
    27      - properties:
    28          args:
    29          - --path.sysfs=/host/sys
    30          - --path.rootfs=/host/root
    31          - --no-collector.wifi
    32          - --no-collector.hwmon
    33          - --collector.filesystem.ignored-mount-points=^/(dev|proc|sys|var/lib/docker/.+|var/lib/kubelet/pods/.+)($|/)
    34          - --collector.netclass.ignored-devices=^(veth.*)$
    35        type: command
    36      - properties:
    37          annotations:
    38            prometheus.io/path: /metrics
    39            prometheus.io/port: "8080"
    40            prometheus.io/scrape: "true"
    41          port:
    42          - 9100
    43        type: expose
    44      - properties:
    45          cpu: 0.1
    46          memory: 250Mi
    47        type: resource
    48  ```