2018-11-04 09:07:38 +00:00
|
|
|
---
|
|
|
|
kind: DaemonSet
|
2019-09-10 19:06:55 +00:00
|
|
|
apiVersion: apps/v1
|
2018-11-04 09:07:38 +00:00
|
|
|
metadata:
|
2022-06-21 17:56:26 +00:00
|
|
|
name: kube-multus-ds-{{ image_arch }}
|
2018-11-04 09:07:38 +00:00
|
|
|
namespace: kube-system
|
|
|
|
labels:
|
|
|
|
tier: node
|
|
|
|
app: multus
|
|
|
|
spec:
|
2019-09-10 19:06:55 +00:00
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
tier: node
|
|
|
|
app: multus
|
2018-11-04 09:07:38 +00:00
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
tier: node
|
|
|
|
app: multus
|
|
|
|
spec:
|
|
|
|
hostNetwork: true
|
2019-06-05 10:17:56 +00:00
|
|
|
dnsPolicy: ClusterFirstWithHostNet
|
2018-11-04 09:07:38 +00:00
|
|
|
nodeSelector:
|
2022-06-21 17:56:26 +00:00
|
|
|
kubernetes.io/arch: {{ image_arch }}
|
2018-11-04 09:07:38 +00:00
|
|
|
tolerations:
|
2020-06-02 12:38:15 +00:00
|
|
|
- operator: Exists
|
2018-11-04 09:07:38 +00:00
|
|
|
serviceAccountName: multus
|
|
|
|
containers:
|
|
|
|
- name: kube-multus
|
|
|
|
image: {{ multus_image_repo }}:{{ multus_image_tag }}
|
|
|
|
command: ["/entrypoint.sh"]
|
|
|
|
args:
|
|
|
|
- "--cni-conf-dir={{ multus_cni_conf_dir }}"
|
|
|
|
- "--cni-bin-dir={{ multus_cni_bin_dir }}"
|
|
|
|
- "--multus-conf-file={{ multus_conf_file }}"
|
|
|
|
- "--multus-kubeconfig-file-host={{ multus_kubeconfig_file_host }}"
|
2020-03-13 11:22:39 +00:00
|
|
|
- "--cni-version={{ multus_cni_version }}"
|
2018-11-04 09:07:38 +00:00
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
cpu: "100m"
|
2020-05-01 06:38:05 +00:00
|
|
|
memory: "90Mi"
|
2018-11-04 09:07:38 +00:00
|
|
|
limits:
|
|
|
|
cpu: "100m"
|
2020-05-01 06:38:05 +00:00
|
|
|
memory: "90Mi"
|
2018-11-04 09:07:38 +00:00
|
|
|
securityContext:
|
|
|
|
privileged: true
|
2020-03-13 11:22:39 +00:00
|
|
|
{% if container_manager == 'crio' %}
|
|
|
|
capabilities:
|
|
|
|
add: ["SYS_ADMIN"]
|
|
|
|
{% endif %}
|
2018-11-04 09:07:38 +00:00
|
|
|
volumeMounts:
|
2020-03-13 11:22:39 +00:00
|
|
|
{% if container_manager == 'crio' %}
|
|
|
|
- name: run
|
|
|
|
mountPath: {{ multus_cni_run_dir }}
|
|
|
|
{% endif %}
|
2018-11-04 09:07:38 +00:00
|
|
|
- name: cni
|
|
|
|
mountPath: {{ multus_cni_conf_dir }}
|
|
|
|
- name: cnibin
|
|
|
|
mountPath: {{ multus_cni_bin_dir }}
|
|
|
|
volumes:
|
2020-03-13 11:22:39 +00:00
|
|
|
{% if container_manager == 'crio' %}
|
|
|
|
- name: run
|
|
|
|
hostPath:
|
|
|
|
path: {{ multus_cni_run_dir_host }}
|
|
|
|
{% endif %}
|
2018-11-04 09:07:38 +00:00
|
|
|
- name: cni
|
|
|
|
hostPath:
|
|
|
|
path: {{ multus_cni_conf_dir_host }}
|
|
|
|
- name: cnibin
|
|
|
|
hostPath:
|
|
|
|
path: {{ multus_cni_bin_dir_host }}
|