2021-02-10 11:20:59 +00:00
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: DaemonSet
|
|
|
|
metadata:
|
|
|
|
name: kube-multus-ds
|
|
|
|
namespace: {{ .Release.Namespace }}
|
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
name: multus
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
name: multus
|
|
|
|
spec:
|
|
|
|
hostNetwork: true
|
|
|
|
tolerations:
|
|
|
|
- operator: Exists
|
|
|
|
effect: NoSchedule
|
2021-05-27 19:12:25 +00:00
|
|
|
- operator: Exists
|
|
|
|
effect: NoExecute
|
2021-02-10 11:20:59 +00:00
|
|
|
serviceAccountName: multus
|
|
|
|
initContainers:
|
|
|
|
- name: cni-plugins
|
|
|
|
image: {{ template "system_default_registry" . }}{{ .Values.cniplugins.image.repository }}:{{ .Values.cniplugins.image.tag }}
|
|
|
|
volumeMounts:
|
|
|
|
- name: cnibin
|
|
|
|
mountPath: /host/opt/cni/bin
|
|
|
|
env:
|
|
|
|
- name: SKIP_CNI_BINARIES
|
|
|
|
value: {{ .Values.cniplugins.skipcnis }}
|
|
|
|
containers:
|
|
|
|
- name: kube-multus
|
|
|
|
image: {{ template "system_default_registry" . }}{{ .Values.multus.image.repository }}:{{ .Values.multus.image.tag }}
|
|
|
|
command: ["/entrypoint.sh"]
|
|
|
|
args:
|
|
|
|
- "--multus-conf-file=auto"
|
|
|
|
- "--cni-version=0.3.1"
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
cpu: "100m"
|
|
|
|
memory: "50Mi"
|
|
|
|
limits:
|
|
|
|
cpu: "100m"
|
|
|
|
memory: "50Mi"
|
|
|
|
securityContext:
|
|
|
|
privileged: true
|
|
|
|
volumeMounts:
|
|
|
|
- name: cni
|
|
|
|
mountPath: /host/etc/cni/net.d
|
|
|
|
- name: cnibin
|
|
|
|
mountPath: /host/opt/cni/bin
|
|
|
|
terminationGracePeriodSeconds: 10
|
|
|
|
volumes:
|
|
|
|
- name: cni
|
|
|
|
hostPath:
|
|
|
|
path: /etc/cni/net.d
|
|
|
|
- name: cnibin
|
|
|
|
hostPath:
|
|
|
|
path: /opt/cni/bin
|