mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-21 01:50:55 +00:00
Use debian-hyperkube-base:0.11.0 and remove qemu registration
This commit is contained in:
@@ -75,10 +75,10 @@ docker_pull(
|
|||||||
|
|
||||||
docker_pull(
|
docker_pull(
|
||||||
name = "debian-hyperkube-base-amd64",
|
name = "debian-hyperkube-base-amd64",
|
||||||
digest = "sha256:c50522965140c9f206900bf47d547d601c04943e1e59801ba5f70235773cfbb6",
|
digest = "sha256:b180af61c8c40a3e011630be135c091e7af6b6c784bedce839d31b9fad63c435",
|
||||||
registry = "k8s.gcr.io",
|
registry = "k8s.gcr.io",
|
||||||
repository = "debian-hyperkube-base-amd64",
|
repository = "debian-hyperkube-base-amd64",
|
||||||
tag = "0.10.2", # ignored, but kept here for documentation
|
tag = "0.11.0", # ignored, but kept here for documentation
|
||||||
)
|
)
|
||||||
|
|
||||||
docker_pull(
|
docker_pull(
|
||||||
|
@@ -7,23 +7,6 @@ container_image(
|
|||||||
"//cmd/hyperkube",
|
"//cmd/hyperkube",
|
||||||
],
|
],
|
||||||
stamp = True,
|
stamp = True,
|
||||||
symlinks = {
|
|
||||||
"/%s" % path: "/hyperkube"
|
|
||||||
for path in [
|
|
||||||
"/apiserver",
|
|
||||||
"/controller-manager",
|
|
||||||
"/kubectl",
|
|
||||||
"/kubelet",
|
|
||||||
"/proxy",
|
|
||||||
"/scheduler",
|
|
||||||
"/usr/local/bin/kube-apiserver",
|
|
||||||
"/usr/local/bin/kube-controller-manager",
|
|
||||||
"/usr/local/bin/kubectl",
|
|
||||||
"/usr/local/bin/kubelet",
|
|
||||||
"/usr/local/bin/kube-proxy",
|
|
||||||
"/usr/local/bin/kube-scheduler",
|
|
||||||
]
|
|
||||||
},
|
|
||||||
)
|
)
|
||||||
|
|
||||||
container_bundle(
|
container_bundle(
|
||||||
|
@@ -14,25 +14,5 @@
|
|||||||
|
|
||||||
FROM BASEIMAGE
|
FROM BASEIMAGE
|
||||||
|
|
||||||
# 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 k8s.gcr.io/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
|
|
||||||
RUN ln -s /hyperkube /apiserver \
|
|
||||||
&& ln -s /hyperkube /controller-manager \
|
|
||||||
&& ln -s /hyperkube /kubectl \
|
|
||||||
&& ln -s /hyperkube /kubelet \
|
|
||||||
&& ln -s /hyperkube /proxy \
|
|
||||||
&& ln -s /hyperkube /scheduler \
|
|
||||||
&& ln -s /hyperkube /aggregator \
|
|
||||||
&& ln -s /hyperkube /usr/local/bin/kube-apiserver \
|
|
||||||
&& ln -s /hyperkube /usr/local/bin/kube-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 the hyperkube binary
|
||||||
COPY hyperkube /hyperkube
|
COPY hyperkube /hyperkube
|
||||||
|
@@ -22,7 +22,7 @@ ARCH?=amd64
|
|||||||
OUT_DIR?=_output
|
OUT_DIR?=_output
|
||||||
HYPERKUBE_BIN?=$(shell pwd)/../../../$(OUT_DIR)/dockerized/bin/linux/$(ARCH)/hyperkube
|
HYPERKUBE_BIN?=$(shell pwd)/../../../$(OUT_DIR)/dockerized/bin/linux/$(ARCH)/hyperkube
|
||||||
|
|
||||||
BASEIMAGE=k8s.gcr.io/debian-hyperkube-base-$(ARCH):0.10.2
|
BASEIMAGE=k8s.gcr.io/debian-hyperkube-base-$(ARCH):0.11.0
|
||||||
TEMP_DIR:=$(shell mktemp -d -t hyperkubeXXXXXX)
|
TEMP_DIR:=$(shell mktemp -d -t hyperkubeXXXXXX)
|
||||||
|
|
||||||
all: build
|
all: build
|
||||||
@@ -39,10 +39,6 @@ endif
|
|||||||
|
|
||||||
cd ${TEMP_DIR} && sed -i.back "s|BASEIMAGE|${BASEIMAGE}|g" Dockerfile
|
cd ${TEMP_DIR} && sed -i.back "s|BASEIMAGE|${BASEIMAGE}|g" Dockerfile
|
||||||
|
|
||||||
ifneq ($(ARCH),amd64)
|
|
||||||
# Register /usr/bin/qemu-ARCH-static as the handler for non-x86 binaries in the kernel
|
|
||||||
docker run --rm --privileged multiarch/qemu-user-static:register --reset
|
|
||||||
endif
|
|
||||||
docker build --pull -t ${REGISTRY}/hyperkube-${ARCH}:${VERSION} ${TEMP_DIR}
|
docker build --pull -t ${REGISTRY}/hyperkube-${ARCH}:${VERSION} ${TEMP_DIR}
|
||||||
rm -rf "${TEMP_DIR}"
|
rm -rf "${TEMP_DIR}"
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user