github.com/openshift/dpu-operator@v0.0.0-20240502153209-3af840d137c2/bindata/daemon/04.daemonset.yaml (about)

     1  apiVersion: apps/v1
     2  kind: DaemonSet
     3  metadata:
     4    name: dpu-daemon
     5    namespace: {{.Namespace}}
     6  spec:
     7    selector:
     8      matchLabels:
     9        app: dpu-daemon
    10    template:
    11      metadata:
    12        labels:
    13          app: dpu-daemon
    14          component: network
    15          type: infra
    16      spec:
    17        serviceAccountName: dpu-daemon-sa
    18        hostNetwork: true
    19        hostPID: true
    20        nodeSelector:
    21          dpu: "true"
    22        securityContext:
    23          privileged: true
    24        containers:
    25        - name: dpu-daemon
    26          image: {{.DpuOperatorDaemonImage}}
    27          securityContext:
    28            privileged: true
    29          imagePullPolicy: {{.ImagePullPolicy}}
    30          env:
    31          - name: K8S_NODE
    32            valueFrom:
    33              fieldRef:
    34                fieldPath: spec.nodeName
    35          - name: NAMESPACE
    36            value: {{.Namespace}}
    37          volumeMounts:
    38          - name: devicesock
    39            mountPath: /var/lib/kubelet/
    40            readOnly: false
    41          - name: dpu-daemon-mount
    42            mountPath: /var/run/dpu-daemon
    43            mountPropagation: Bidirectional
    44          - name: var-cni-dir
    45            mountPath: /var/lib/cni
    46          - name: opt-cni-dir
    47            mountPath: /opt/cni
    48          - name: host-run
    49            mountPath: /var/run/netns
    50            mountPropagation: Bidirectional
    51          - name: proc
    52            mountPath: /proc
    53          args:
    54          - --mode
    55          - {{.Mode}}
    56        volumes:
    57          - name: devicesock
    58            hostPath:
    59              path: /var/lib/kubelet/
    60          - name: dpu-daemon-mount
    61            hostPath:
    62              path: /var/run/dpu-daemon
    63          - name: var-cni-dir
    64            hostPath:
    65              path: /var/lib/cni
    66          - name: opt-cni-dir
    67            hostPath:
    68              path: /opt/cni
    69          - name: host-run
    70            hostPath:
    71              path: /var/run/netns
    72          - name: proc
    73            hostPath:
    74              path: /proc/