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 }}"
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
cpu: "100m"
|
|
|
|
memory: "50Mi"
|
|
|
|
limits:
|
|
|
|
cpu: "100m"
|
|
|
|
memory: "50Mi"
|
|
|
|
securityContext:
|
|
|
|
privileged: true
|
|
|
|
volumeMounts:
|
|
|
|
- name: cni
|
|
|
|
mountPath: {{ multus_cni_conf_dir }}
|
|
|
|
- name: cnibin
|
|
|
|
mountPath: {{ multus_cni_bin_dir }}
|
|
|
|
volumes:
|
|
|
|
- name: cni
|
|
|
|
hostPath:
|
|
|
|
path: {{ multus_cni_conf_dir_host }}
|
|
|
|
- name: cnibin
|
|
|
|
hostPath:
|
|
|
|
path: {{ multus_cni_bin_dir_host }}
|