123456789101112131415161718192021222324252627282930313233343536373839 |
- apiVersion: extensions/v1beta1
- kind: DaemonSet
- metadata:
- name: kube-sriov-cni-ds-installer
- namespace: kube-system
- spec:
- template:
- metadata:
- labels:
- name: sriov-cni-ds
- spec:
- hostNetwork: true
- tolerations:
- - key: node-role.kubernetes.io/master
- operator: Exists
- effect: NoSchedule
- initContainers:
- - name: install-cni
- image: rdma/k8s-sriov-cni-installer
- imagePullPolicy: IfNotPresent
- command: [ "/installer/installer.sh" ]
- volumeMounts:
- - name: host-cni-etc
- mountPath: /host-cni-etc
- - name: host-cni-bin
- mountPath: /host-cni-bin
- containers:
- - name: install-cni-sleep
- image: rdma/k8s-sriov-cni-installer
- imagePullPolicy: IfNotPresent
- command: [ "/installer/installer_sleep.sh" ]
- volumes:
- - name: host-cni-etc
- hostPath:
- path: /etc/cni/net.d/
- - name: host-cni-bin
- hostPath:
- path: /opt/cni/bin
|