From a4790457d5f7bd000174e2c741e5464fb9c02316 Mon Sep 17 00:00:00 2001 From: Sebastien Coquelin Date: Wed, 23 Oct 2024 11:59:54 -0700 Subject: [PATCH] chore: upgrade multus to v4.1.3-thick and migrate config (#104) --- gitops/components/multus/kustomization.yaml | 30 ++++++++++++++----- .../multus-daemonset-container-args.yaml | 15 ---------- 2 files changed, 22 insertions(+), 23 deletions(-) delete mode 100644 gitops/components/multus/overlays/multus-daemonset-container-args.yaml diff --git a/gitops/components/multus/kustomization.yaml b/gitops/components/multus/kustomization.yaml index 1071114..c9d0b48 100644 --- a/gitops/components/multus/kustomization.yaml +++ b/gitops/components/multus/kustomization.yaml @@ -2,11 +2,11 @@ apiVersion: kustomize.config.k8s.io/v1alpha1 kind: Component resources: - - https://raw.githubusercontent.com/k8snetworkplumbingwg/multus-cni/v3.9.3/deployments/multus-daemonset.yml + - https://raw.githubusercontent.com/k8snetworkplumbingwg/multus-cni/v4.1.3/deployments/multus-daemonset-thick.yml images: - name: ghcr.io/k8snetworkplumbingwg/multus-cni - newTag: v3.9.3 + newTag: v4.1.3-thick patches: - target: @@ -21,12 +21,26 @@ patches: kind: DaemonSet name: kube-multus-ds path: ./overlays/multus-daemonset-readiness.yaml - - target: - group: apps - version: v1 - kind: DaemonSet - name: kube-multus-ds - path: ./overlays/multus-daemonset-container-args.yaml + - patch: |- + apiVersion: v1 + kind: ConfigMap + metadata: + name: multus-daemon-config + namespace: kube-system + data: + daemon-config.json: | + { + "chrootDir": "/hostroot", + "cniVersion": "0.4.0", + "logFile": "/var/log/aws-routed-eni/multus.log", + "logLevel": "error", + "logToStderr": true, + "cniConfigDir": "/host/etc/cni/net.d", + "multusAutoconfigDir": "/host/etc/cni/net.d", + "multusMasterCNI": "10-aws.conflist", + "multusConfigFile": "auto", + "socketDir": "/host/run/multus/" + } - target: group: argoproj.io version: v1alpha1 diff --git a/gitops/components/multus/overlays/multus-daemonset-container-args.yaml b/gitops/components/multus/overlays/multus-daemonset-container-args.yaml deleted file mode 100644 index 336a6f8..0000000 --- a/gitops/components/multus/overlays/multus-daemonset-container-args.yaml +++ /dev/null @@ -1,15 +0,0 @@ -apiVersion: apps/v1 -kind: DaemonSet -metadata: - name: kube-multus-ds -spec: - template: - spec: - containers: - - name: kube-multus - args: - - "--multus-conf-file=auto" - - "--cni-version=0.4.0" - - "--multus-master-cni-file-name=10-aws.conflist" - - "--multus-log-level=error" - - "--multus-log-file=/var/log/aws-routed-eni/multus.log"