You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

71 lines
1.8 KiB

  1. ---
  2. kind: DaemonSet
  3. apiVersion: apps/v1
  4. metadata:
  5. name: kube-multus-ds-amd64
  6. namespace: kube-system
  7. labels:
  8. tier: node
  9. app: multus
  10. spec:
  11. selector:
  12. matchLabels:
  13. tier: node
  14. app: multus
  15. template:
  16. metadata:
  17. labels:
  18. tier: node
  19. app: multus
  20. spec:
  21. hostNetwork: true
  22. dnsPolicy: ClusterFirstWithHostNet
  23. nodeSelector:
  24. kubernetes.io/arch: amd64
  25. tolerations:
  26. - operator: Exists
  27. serviceAccountName: multus
  28. containers:
  29. - name: kube-multus
  30. image: {{ multus_image_repo }}:{{ multus_image_tag }}
  31. command: ["/entrypoint.sh"]
  32. args:
  33. - "--cni-conf-dir={{ multus_cni_conf_dir }}"
  34. - "--cni-bin-dir={{ multus_cni_bin_dir }}"
  35. - "--multus-conf-file={{ multus_conf_file }}"
  36. - "--multus-kubeconfig-file-host={{ multus_kubeconfig_file_host }}"
  37. - "--cni-version={{ multus_cni_version }}"
  38. resources:
  39. requests:
  40. cpu: "100m"
  41. memory: "90Mi"
  42. limits:
  43. cpu: "100m"
  44. memory: "90Mi"
  45. securityContext:
  46. privileged: true
  47. {% if container_manager == 'crio' %}
  48. capabilities:
  49. add: ["SYS_ADMIN"]
  50. {% endif %}
  51. volumeMounts:
  52. {% if container_manager == 'crio' %}
  53. - name: run
  54. mountPath: {{ multus_cni_run_dir }}
  55. {% endif %}
  56. - name: cni
  57. mountPath: {{ multus_cni_conf_dir }}
  58. - name: cnibin
  59. mountPath: {{ multus_cni_bin_dir }}
  60. volumes:
  61. {% if container_manager == 'crio' %}
  62. - name: run
  63. hostPath:
  64. path: {{ multus_cni_run_dir_host }}
  65. {% endif %}
  66. - name: cni
  67. hostPath:
  68. path: {{ multus_cni_conf_dir_host }}
  69. - name: cnibin
  70. hostPath:
  71. path: {{ multus_cni_bin_dir_host }}