Skip to content

Commit 634a995

Browse files
update kubectl and delete perl (#3223)
* update kubectl and delete perl Signed-off-by: 马洪贞 <hzma@alauda.io> * Update dist/images/Dockerfile Co-authored-by: Oilbeater <mengxin@alauda.io> Signed-off-by: 马洪贞 <hzma@alauda.io> --------- Signed-off-by: 马洪贞 <hzma@alauda.io> Co-authored-by: Oilbeater <mengxin@alauda.io>
1 parent dabea2d commit 634a995

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

dist/images/Dockerfile

+5-2
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,14 @@ COPY grace_stop_ovn_controller /usr/share/ovn/scripts/grace_stop_ovn_controller
1212
WORKDIR /kube-ovn
1313

1414
RUN /kube-ovn/iptables-wrapper-installer.sh --no-sanity-check
15-
RUN rm -f /usr/bin/nc &&\
16-
rm -f /usr/bin/netcat
15+
1716
RUN deluser sync &&\
1817
deluser tss
1918

19+
RUN rm -f /usr/bin/nc && \
20+
rm -f /usr/bin/perl && \
21+
rm -f /usr/bin/netcat
22+
2023
COPY kube-ovn-cmd /kube-ovn/kube-ovn-cmd
2124
COPY kube-ovn-webhook /kube-ovn/kube-ovn-webhook
2225
RUN ln -s /kube-ovn/kube-ovn-cmd /kube-ovn/kube-ovn && \

dist/images/Dockerfile.base

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ ARG ARCH
9898
ENV CNI_VERSION=v1.2.0
9999
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
100100

101-
ENV KUBE_VERSION="v1.26.6"
101+
ENV KUBE_VERSION="v1.28.2"
102102

103103
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 \
104104
&& chmod +x /usr/bin/kubectl && rm -rf ./kubernetes

0 commit comments

Comments
 (0)