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.

74 lines
1.9 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. {% if container_manager == 'crio' %}
  39. - "--restart-crio=true"
  40. {% endif %}
  41. resources:
  42. requests:
  43. cpu: "100m"
  44. memory: "90Mi"
  45. limits:
  46. cpu: "100m"
  47. memory: "90Mi"
  48. securityContext:
  49. privileged: true
  50. {% if container_manager == 'crio' %}
  51. capabilities:
  52. add: ["SYS_ADMIN"]
  53. {% endif %}
  54. volumeMounts:
  55. {% if container_manager == 'crio' %}
  56. - name: run
  57. mountPath: {{ multus_cni_run_dir }}
  58. {% endif %}
  59. - name: cni
  60. mountPath: {{ multus_cni_conf_dir }}
  61. - name: cnibin
  62. mountPath: {{ multus_cni_bin_dir }}
  63. volumes:
  64. {% if container_manager == 'crio' %}
  65. - name: run
  66. hostPath:
  67. path: {{ multus_cni_run_dir_host }}
  68. {% endif %}
  69. - name: cni
  70. hostPath:
  71. path: {{ multus_cni_conf_dir_host }}
  72. - name: cnibin
  73. hostPath:
  74. path: {{ multus_cni_bin_dir_host }}