k8s-sriov-cni-installer.yaml 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. apiVersion: extensions/v1beta1
  2. kind: DaemonSet
  3. metadata:
  4. name: kube-sriov-cni-ds-installer
  5. namespace: kube-system
  6. spec:
  7. template:
  8. metadata:
  9. labels:
  10. name: sriov-cni-ds
  11. spec:
  12. hostNetwork: true
  13. tolerations:
  14. - key: node-role.kubernetes.io/master
  15. operator: Exists
  16. effect: NoSchedule
  17. initContainers:
  18. - name: install-cni
  19. image: rdma/k8s-sriov-cni-installer
  20. imagePullPolicy: IfNotPresent
  21. command: [ "/installer/installer.sh" ]
  22. volumeMounts:
  23. - name: host-cni-etc
  24. mountPath: /host-cni-etc
  25. - name: host-cni-bin
  26. mountPath: /host-cni-bin
  27. containers:
  28. - name: install-cni-sleep
  29. image: rdma/k8s-sriov-cni-installer
  30. imagePullPolicy: IfNotPresent
  31. command: [ "/installer/installer_sleep.sh" ]
  32. volumes:
  33. - name: host-cni-etc
  34. hostPath:
  35. path: /etc/cni/net.d/
  36. - name: host-cni-bin
  37. hostPath:
  38. path: /opt/cni/bin