From 5ff6cf82ca593a7b701584dd76abdd09d96eb22e Mon Sep 17 00:00:00 2001 From: Andrey Smirnov Date: Thu, 22 Aug 2024 20:33:08 +0400 Subject: [PATCH] fix: drop /opt mount for containers/tink The `/opt/cni/bin` in the rootfs contains CNI binaries, which get overwritten by the volume mount. Signed-off-by: Andrey Smirnov --- internal/integration/k8s/tink.go | 2 +- .../v1.8/talos-guides/install/cloud-platforms/kubernetes.md | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/internal/integration/k8s/tink.go b/internal/integration/k8s/tink.go index 790dfcd22b..84b2ce948b 100644 --- a/internal/integration/k8s/tink.go +++ b/internal/integration/k8s/tink.go @@ -420,7 +420,7 @@ func (suite *TinkSuite) getTinkManifests(namespace, serviceName, ssName, talosIm }, }, xslices.Map( - constants.Overlays, + xslices.Filter(constants.Overlays, func(overlay string) bool { return overlay != "/opt" }), // /opt/cni/bin contains CNI binaries func(mountPath string) overlayMountSpec { return overlayMountSpec{ MountPoint: mountPath, diff --git a/website/content/v1.8/talos-guides/install/cloud-platforms/kubernetes.md b/website/content/v1.8/talos-guides/install/cloud-platforms/kubernetes.md index 5c9c14102b..a2b0292b9e 100644 --- a/website/content/v1.8/talos-guides/install/cloud-platforms/kubernetes.md +++ b/website/content/v1.8/talos-guides/install/cloud-platforms/kubernetes.md @@ -100,6 +100,4 @@ volumeMounts: name: etc-kubernetes - mountPath: /usr/libexec/kubernetes name: usr-libexec-kubernetes - - mountPath: /opt - name: opt ```