Merge pull request #29591 from pbx0/symlinks
Automatic merge from submit-queue cluster/images/hyperkube: re-add hyperkube busybox style symlinks Originally symlinks were added with a `--make-symlinks` command discussed in https://github.com/kubernetes/kubernetes/issues/24510 and implemented in https://github.com/kubernetes/kubernetes/pull/24511. It was backed out in https://github.com/kubernetes/kubernetes/pull/25693 because go binaries don't run in qemu and this breaks cross-building the Dockerfile for arm. In this case, due to running `hyperkube --make-symlinks`. Lets just add the symlinks manually until the upstream bug is fixed (qemu). fixes #28702 @mikedanese @thockin @yifan-gu @euank
This commit is contained in:
commit
1ec1051170
@ -72,6 +72,14 @@ COPY cni /opt/cni
|
|||||||
COPY cni-conf /etc/cni/net.d
|
COPY cni-conf /etc/cni/net.d
|
||||||
|
|
||||||
# Create symlinks for each hyperkube server
|
# Create symlinks for each hyperkube server
|
||||||
# TODO: this is unreliable for now (e.g. running "/kubelet" panics)
|
# TODO: replace manual symlink creation with --make-symlink command once
|
||||||
# Also, it doesn't work for other architectures
|
# cross-building with qemu supports go binaries. See #28702
|
||||||
# RUN /hyperkube --make-symlinks
|
# RUN /hyperkube --make-symlinks
|
||||||
|
RUN ln -s /hyperkube /apiserver \
|
||||||
|
&& ln -s /hyperkube /controller-manager \
|
||||||
|
&& ln -s /hyperkube /federation-apiserver \
|
||||||
|
&& ln -s /hyperkube /federation-controller-manager \
|
||||||
|
&& ln -s /hyperkube /kubectl \
|
||||||
|
&& ln -s /hyperkube /kubelet \
|
||||||
|
&& ln -s /hyperkube /proxy \
|
||||||
|
&& ln -s /hyperkube /scheduler
|
||||||
|
Loading…
Reference in New Issue
Block a user