Skip to content

Commit

Permalink
kube-proxy: update iptables version (#186)
Browse files Browse the repository at this point in the history
  • Loading branch information
cyclinder authored Dec 22, 2023
1 parent 828d641 commit bd46dfe
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
44 changes: 44 additions & 0 deletions patches/update-kube-proxy-iptables.1.18.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: cyclinder <[email protected]>
Date: Fri, 22 Dec 2023 14:23:10 +0800
Subject: [PATCH] kube-proxy: update iptables version

---
build/BUILD | 2 +-
build/common.sh | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/build/BUILD b/build/BUILD
index 70e3874b441..4c67a178517 100644
--- a/build/BUILD
+++ b/build/BUILD
@@ -42,7 +42,7 @@ DOCKERIZED_BINARIES = {
"target": "//cmd/kube-scheduler:kube-scheduler",
},
"kube-proxy": {
- "base": "@debian-iptables-{ARCH}//image",
+ "base": "@distroless-iptables//image",
"target": "//cmd/kube-proxy:kube-proxy",
},
}
diff --git a/build/common.sh b/build/common.sh
index 9cd95b5af51..13c15466c39 100755
--- a/build/common.sh
+++ b/build/common.sh
@@ -95,14 +95,14 @@ readonly KUBE_CONTAINER_RSYNC_PORT=8730
kube::build::get_docker_wrapped_binaries() {
local arch=$1
local debian_base_version=v2.1.3
- local debian_iptables_version=v12.1.2
+ local distroless_iptables_version=v0.4.2
### If you change any of these lists, please also update DOCKERIZED_BINARIES
### in build/BUILD. And kube::golang::server_image_targets
local targets=(
"kube-apiserver,${KUBE_BASE_IMAGE_REGISTRY}/debian-base-${arch}:${debian_base_version}"
"kube-controller-manager,${KUBE_BASE_IMAGE_REGISTRY}/debian-base-${arch}:${debian_base_version}"
"kube-scheduler,${KUBE_BASE_IMAGE_REGISTRY}/debian-base-${arch}:${debian_base_version}"
- "kube-proxy,${KUBE_BASE_IMAGE_REGISTRY}/debian-iptables-${arch}:${debian_iptables_version}"
+ "kube-proxy,registry.k8s.io/build-image/distroless-iptables:${distroless_iptables_version}"
)

echo "${targets[@]}"
9 changes: 9 additions & 0 deletions releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,15 @@ releases:
- fix-missing-env-91500.1.18
- CVE-2021-25741.1.18
- nokmem.1.20

- name: v1.18.20-dce.1
base_release: v1.18.20-ci
patches:
- CVE-2020-8554.1.18
- fix-missing-env-91500.1.18
- CVE-2021-25741.1.18
- nokmem.1.20
- update-kube-proxy-iptables.1.18.patch

- name: v1.17.17-lts.2
base_release: v1.17.17-ci
Expand Down

0 comments on commit bd46dfe

Please sign in to comment.