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.

54 lines
1.4 KiB

  1. ---
  2. kind: DaemonSet
  3. apiVersion: extensions/v1beta1
  4. metadata:
  5. name: kube-multus-ds-amd64
  6. namespace: kube-system
  7. labels:
  8. tier: node
  9. app: multus
  10. spec:
  11. template:
  12. metadata:
  13. labels:
  14. tier: node
  15. app: multus
  16. spec:
  17. hostNetwork: true
  18. nodeSelector:
  19. beta.kubernetes.io/arch: amd64
  20. tolerations:
  21. - key: node-role.kubernetes.io/master
  22. operator: Exists
  23. effect: NoSchedule
  24. serviceAccountName: multus
  25. containers:
  26. - name: kube-multus
  27. image: {{ multus_image_repo }}:{{ multus_image_tag }}
  28. command: ["/entrypoint.sh"]
  29. args:
  30. - "--cni-conf-dir={{ multus_cni_conf_dir }}"
  31. - "--cni-bin-dir={{ multus_cni_bin_dir }}"
  32. - "--multus-conf-file={{ multus_conf_file }}"
  33. - "--multus-kubeconfig-file-host={{ multus_kubeconfig_file_host }}"
  34. resources:
  35. requests:
  36. cpu: "100m"
  37. memory: "50Mi"
  38. limits:
  39. cpu: "100m"
  40. memory: "50Mi"
  41. securityContext:
  42. privileged: true
  43. volumeMounts:
  44. - name: cni
  45. mountPath: {{ multus_cni_conf_dir }}
  46. - name: cnibin
  47. mountPath: {{ multus_cni_bin_dir }}
  48. volumes:
  49. - name: cni
  50. hostPath:
  51. path: {{ multus_cni_conf_dir_host }}
  52. - name: cnibin
  53. hostPath:
  54. path: {{ multus_cni_bin_dir_host }}