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:
|
|
|
|
name: kube-multus-ds-amd64
|
|
|
|
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:
|
|
|
|
beta.kubernetes.io/arch: amd64
|
|
|
|
tolerations:
|
2019-04-17 14:58:06 +00:00
|
|
|
- key: node-role.kubernetes.io/master
|
2018-11-04 09:07:38 +00:00
|
|
|
operator: Exists
|
|
|
|
effect: NoSchedule
|
|
|
|
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 }}"
|
|
|
|
{% if container_manager == 'crio' %}
|
|
|
|
- "--restart-crio=true"
|
|
|
|
{% endif %}
|
2018-11-04 09:07:38 +00:00
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
cpu: "100m"
|
|
|
|
memory: "50Mi"
|
|
|
|
limits:
|
|
|
|
cpu: "100m"
|
|
|
|
memory: "50Mi"
|
|
|
|
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 }}
|