Make symlinks to /usr/local/bin/ in the hyperkube image

This commit is contained in:
Lucas Käldström 2017-02-09 21:46:00 +02:00
parent e2f829418e
commit 6f6ddc09c4
No known key found for this signature in database
GPG Key ID: 3FA3783D77751514

View File

@ -66,6 +66,8 @@ COPY cni-bin/bin /opt/cni/bin
COPY cni-conf /etc/cni/net.d
# Create symlinks for each hyperkube server
# Also create symlinks to /usr/local/bin/ where the server image binaries live, so the hyperkube image may be
# used instead of gcr.io/google_containers/kube-* without any modifications.
# TODO: replace manual symlink creation with --make-symlink command once
# cross-building with qemu supports go binaries. See #28702
# RUN /hyperkube --make-symlinks
@ -76,8 +78,15 @@ RUN ln -s /hyperkube /apiserver \
&& ln -s /hyperkube /kubectl \
&& ln -s /hyperkube /kubelet \
&& ln -s /hyperkube /proxy \
&& ln -s /hyperkube /scheduler
&& ln -s /hyperkube /scheduler \
&& ln -s /hyperkube /usr/local/bin/kube-apiserver \
&& ln -s /hyperkube /usr/local/bin/kube-controller-manager \
&& ln -s /hyperkube /usr/local/bin/federation-apiserver \
&& ln -s /hyperkube /usr/local/bin/federation-controller-manager \
&& ln -s /hyperkube /usr/local/bin/kubectl \
&& ln -s /hyperkube /usr/local/bin/kubelet \
&& ln -s /hyperkube /usr/local/bin/kube-proxy \
&& ln -s /hyperkube /usr/local/bin/kube-scheduler
# Copy the hyperkube binary
COPY hyperkube /hyperkube