mirror of https://git.rancher.io/rke2-charts
58 lines
1.5 KiB
YAML
58 lines
1.5 KiB
YAML
|
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
|
||
|
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
|