github.com/oam-dev/kubevela@v1.9.11/vela-templates/definitions/usage-examples/application-daemon-with-k8s-update-strategy.yaml (about) 1 apiVersion: core.oam.dev/v1beta1 2 kind: Application 3 metadata: 4 name: application-node-exporter 5 spec: 6 components: 7 - name: node-exporter 8 type: daemon 9 properties: 10 image: prom/node-exporter 11 imagePullPolicy: IfNotPresent 12 volumeMounts: 13 hostPath: 14 - mountPath: /host/sys 15 mountPropagation: HostToContainer 16 name: sys 17 path: /sys 18 readOnly: true 19 - mountPath: /host/root 20 mountPropagation: HostToContainer 21 name: root 22 path: / 23 readOnly: true 24 traits: 25 - properties: 26 args: 27 - --path.sysfs=/host/sys 28 - --path.rootfs=/host/root 29 - --no-collector.wifi 30 - --no-collector.hwmon 31 - --collector.filesystem.ignored-mount-points=^/(dev|proc|sys|var/lib/docker/.+|var/lib/kubelet/pods/.+)($|/) 32 - --collector.netclass.ignored-devices=^(veth.*)$ 33 type: command 34 - properties: 35 annotations: 36 prometheus.io/path: /metrics 37 prometheus.io/port: "8080" 38 prometheus.io/scrape: "true" 39 port: 40 - 9100 41 type: expose 42 - properties: 43 cpu: 0.1 44 memory: 250Mi 45 type: resource 46 - type: k8s-update-strategy 47 properties: 48 targetAPIVersion: apps/v1 49 targetKind: DaemonSet 50 strategy: 51 type: RollingUpdate 52 rollingStrategy: 53 maxSurge: 20% 54 maxUnavailable: 30%