github.com/1aal/kubeblocks@v0.0.0-20231107070852-e1c03e598921/deploy/neon/templates/multus-deploy.yaml (about)

     1  ---
     2  apiVersion: apps/v1
     3  kind: DaemonSet
     4  metadata:
     5    labels:
     6      app: multus
     7      name: multus
     8      tier: node
     9    name: kube-multus-ds
    10    namespace: kube-system
    11  spec:
    12    selector:
    13      matchLabels:
    14        name: multus
    15    template:
    16      metadata:
    17        labels:
    18          app: multus
    19          name: multus
    20          tier: node
    21      spec:
    22        affinity:
    23          nodeAffinity:
    24            requiredDuringSchedulingIgnoredDuringExecution:
    25              nodeSelectorTerms:
    26                - matchExpressions:
    27                    - key: kubernetes.io/arch
    28                      operator: In
    29                      values:
    30                        - amd64
    31                    - key: kubernetes.io/os
    32                      operator: In
    33                      values:
    34                        - linux
    35        containers:
    36          - args:
    37              - -cni-version=0.3.1
    38              - -cni-config-dir=/host/etc/cni/net.d
    39              - -multus-autoconfig-dir=/host/etc/cni/net.d
    40              - -multus-log-to-stderr=true
    41              - -multus-log-level=verbose
    42            command:
    43              - /usr/src/multus-cni/bin/multus-daemon
    44            image: ghcr.io/k8snetworkplumbingwg/multus-cni:v3.9.2-thick-amd64
    45            name: kube-multus
    46            resources:
    47              limits:
    48                cpu: 100m
    49                memory: 50Mi
    50              requests:
    51                cpu: 100m
    52                memory: 50Mi
    53            securityContext:
    54              privileged: true
    55            volumeMounts:
    56              - mountPath: /host/etc/cni/net.d
    57                name: cni
    58              - mountPath: /host/opt/cni/bin
    59                name: cnibin
    60        hostNetwork: true
    61        initContainers:
    62          - command:
    63              - cp
    64              - /usr/src/multus-cni/bin/multus
    65              - /host/opt/cni/bin/multus
    66            image: ghcr.io/k8snetworkplumbingwg/multus-cni:v3.9.2-thick-amd64
    67            name: install-multus-binary
    68            resources:
    69              requests:
    70                cpu: 10m
    71                memory: 15Mi
    72            securityContext:
    73              privileged: true
    74            volumeMounts:
    75              - mountPath: /host/opt/cni/bin
    76                mountPropagation: Bidirectional
    77                name: cnibin
    78          - args:
    79              - -k8s-service-host=$(KUBERNETES_SERVICE_HOST)
    80              - -k8s-service-port=$(KUBERNETES_SERVICE_PORT)
    81            command:
    82              - /usr/src/multus-cni/bin/generate-kubeconfig
    83            image: ghcr.io/k8snetworkplumbingwg/multus-cni:v3.9.2-thick-amd64
    84            name: generate-kubeconfig
    85            resources:
    86              requests:
    87                cpu: 10m
    88                memory: 15Mi
    89            securityContext:
    90              privileged: true
    91            volumeMounts:
    92              - mountPath: /host/etc/cni/net.d
    93                mountPropagation: Bidirectional
    94                name: cni
    95        serviceAccountName: multus
    96        terminationGracePeriodSeconds: 10
    97        tolerations:
    98          - effect: NoSchedule
    99            operator: Exists
   100          - effect: NoExecute
   101            operator: Exists
   102        volumes:
   103          - hostPath:
   104              path: /etc/cni/net.d
   105            name: cni
   106          - hostPath:
   107              path: /opt/cni/bin
   108            name: cnibin
   109    updateStrategy:
   110      type: RollingUpdate