From d4d700ecdfb020a4bbb12851a5023edc36c5dbc6 Mon Sep 17 00:00:00 2001 From: Oilbeater Date: Tue, 26 Apr 2022 17:31:00 +0800 Subject: [PATCH] base: add back kubectl (#1485) --- dist/images/Dockerfile.base | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dist/images/Dockerfile.base b/dist/images/Dockerfile.base index cf34ad13dec..82628f66608 100644 --- a/dist/images/Dockerfile.base +++ b/dist/images/Dockerfile.base @@ -65,6 +65,11 @@ ARG ARCH ENV CNI_VERSION=v1.0.1 RUN curl -sSf -L --retry 5 https://github.com/containernetworking/plugins/releases/download/${CNI_VERSION}/cni-plugins-linux-${ARCH}-${CNI_VERSION}.tgz | tar -xz -C . ./loopback ./portmap ./macvlan +ENV KUBE_VERSION="v1.21.1" + +RUN curl -L https://dl.k8s.io/${KUBE_VERSION}/kubernetes-client-linux-${ARCH}.tar.gz | tar -xz -C . && cp ./kubernetes/client/bin/kubectl /usr/bin/kubectl \ + && chmod +x /usr/bin/kubectl && rm -rf ./kubernetes + RUN --mount=type=bind,target=/packages,from=ovs-builder,source=/packages \ dpkg -i /packages/libopenvswitch*.deb && \ dpkg -i /packages/openvswitch-*.deb && \