Skip to content

Commit 37f8a1c

Browse files
author
Ian Campbell
committed
Commit: b06e11c7 Merge pull request #2840 from justincormack/authorsup After running scripts/update-linuxkit-hashes.sh some manual fixup was required: This pulls in a new linuxkit/init package which places all services into the `services.linuxkit` namespace. Update `ssh_into_kubelet.sh` to cope. With the update to an Alpine 3.7 base the /var/run -> /run link is already in place (in alpine 3.6 and earlier it was a directory), so drop that bit from the builds. kube-e2e-test now requires busybox to be explicitly included for the /bin/sh dependency. Rerun "make update-hashes" to pickup those updates. Signed-off-by: Ian Campbell <[email protected]>
1 parent fcc1112 commit 37f8a1c

File tree

10 files changed

+14
-21
lines changed

10 files changed

+14
-21
lines changed

Diff for: pkg/cri-containerd/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM linuxkit/alpine:07f7d136e427dc68154cd5edbb2b9576f9ac5213 AS build
1+
FROM linuxkit/alpine:4584958639b2378246371fe219f33b270667e22e AS build
22

33
RUN \
44
apk add \

Diff for: pkg/kube-e2e-test/Dockerfile

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM linuxkit/alpine:07f7d136e427dc68154cd5edbb2b9576f9ac5213 AS build
1+
FROM linuxkit/alpine:4584958639b2378246371fe219f33b270667e22e AS build
22

33
# When changing kubernetes_version remember to also update:
44
# - scripts/mk-image-cache-lst and run `make refresh-image-caches` from top-level
@@ -40,6 +40,7 @@ RUN mkdir -p /out/etc/apk && cp -r /etc/apk/* /out/etc/apk/
4040
RUN apk add --no-cache --initdb -p /out \
4141
alpine-baselayout \
4242
bash \
43+
busybox \
4344
ca-certificates \
4445
curl \
4546
musl \
@@ -54,8 +55,6 @@ RUN cp _output/bin/e2e.test /out/usr/bin/e2e.test
5455
# Remove apk residuals. We have a read-only rootfs, so apk is of no use.
5556
RUN rm -rf /out/etc/apk /out/lib/apk /out/var/cache
5657

57-
RUN rmdir /out/var/run && ln -nfs /run /out/var/run
58-
5958
ADD in-cluster-config.yaml /out/etc/in-cluster-config.yaml
6059
ADD e2e.sh /out/usr/bin/e2e.sh
6160

Diff for: pkg/kubelet/Dockerfile

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM linuxkit/alpine:07f7d136e427dc68154cd5edbb2b9576f9ac5213 AS build
1+
FROM linuxkit/alpine:4584958639b2378246371fe219f33b270667e22e AS build
22

33
# When changing kubernetes_version remember to also update:
44
# - scripts/mk-image-cache-lst and run `make refresh-image-caches` from top-level
@@ -106,8 +106,6 @@ RUN cp $GOPATH/bin/critest /out/usr/bin/critest
106106
# Remove apk residuals. We have a read-only rootfs, so apk is of no use.
107107
RUN rm -rf /out/etc/apk /out/lib/apk /out/var/cache
108108

109-
RUN rmdir /out/var/run && ln -nfs /run /out/var/run
110-
111109
ADD kubelet.sh /out/usr/bin/kubelet.sh
112110
ADD kubeadm-init.sh /kubeadm-init.sh
113111
RUN sed -e "s/@KUBERNETES_VERSION@/${kubernetes_version}/g" </kubeadm-init.sh >/out/usr/bin/kubeadm-init.sh && chmod +x /out/usr/bin/kubeadm-init.sh

Diff for: pkg/kubernetes-docker-image-cache-common/Dockerfile

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM linuxkit/alpine:07f7d136e427dc68154cd5edbb2b9576f9ac5213 AS build
1+
FROM linuxkit/alpine:4584958639b2378246371fe219f33b270667e22e AS build
22

33
RUN mkdir -p /out/etc/apk && cp -r /etc/apk/* /out/etc/apk/
44
RUN apk add --no-cache --initdb -p /out \
@@ -8,8 +8,6 @@ RUN apk add --no-cache --initdb -p /out \
88
# Remove apk residuals. We have a read-only rootfs, so apk is of no use.
99
RUN rm -rf /out/etc/apk /out/lib/apk /out/var/cache
1010

11-
RUN rmdir /out/var/run && ln -nfs /run /out/var/run
12-
1311
FROM scratch
1412
WORKDIR /
1513
COPY --from=build /out /

Diff for: pkg/kubernetes-docker-image-cache-control-plane/Dockerfile

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM linuxkit/alpine:07f7d136e427dc68154cd5edbb2b9576f9ac5213 AS build
1+
FROM linuxkit/alpine:4584958639b2378246371fe219f33b270667e22e AS build
22

33
RUN mkdir -p /out/etc/apk && cp -r /etc/apk/* /out/etc/apk/
44
RUN apk add --no-cache --initdb -p /out \
@@ -8,8 +8,6 @@ RUN apk add --no-cache --initdb -p /out \
88
# Remove apk residuals. We have a read-only rootfs, so apk is of no use.
99
RUN rm -rf /out/etc/apk /out/lib/apk /out/var/cache
1010

11-
RUN rmdir /out/var/run && ln -nfs /run /out/var/run
12-
1311
FROM scratch
1412
WORKDIR /
1513
COPY --from=build /out /

Diff for: ssh_into_kubelet.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ case $(uname -s) in
1616
ijc25/alpine-ssh"
1717
;;
1818
esac
19-
exec $ssh $sshopts -t root@"$1" ctr tasks exec --tty --exec-id ssh-$(hostname)-$$ kubelet ash -l
19+
exec $ssh $sshopts -t root@"$1" ctr --namespace services.linuxkit tasks exec --tty --exec-id ssh-$(hostname)-$$ kubelet ash -l

Diff for: yml/cri-containerd.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
services:
22
- name: cri-containerd
3-
image: linuxkit/cri-containerd:35f4761216380fe80a120ba7fa2d52545847cc13
3+
image: linuxkit/cri-containerd:456231d577a273334cee9b99761410cfc29d9811
44
cgroupsPath: podruntime/cri-containerd
55
files:
66
- path: /etc/kubelet.sh.conf

Diff for: yml/docker-master.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
services:
22
- name: kubernetes-docker-image-cache-control-plane
3-
image: linuxkit/kubernetes-docker-image-cache-control-plane:3606d4714909c0916f68f2ac96fc728c4d9de316
3+
image: linuxkit/kubernetes-docker-image-cache-control-plane:d486ce15b5dedc742684849dd9d61b8d59d9624b
44
cgroupsPath: podruntime/control-cache

Diff for: yml/docker.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ services:
2424
mkdir: ["/var/lib/kubeadm", "/var/lib/cni/conf", "/var/lib/cni/bin", "/var/lib/kubelet-plugins"]
2525
cgroupsPath: podruntime/docker
2626
- name: kubernetes-docker-image-cache-common
27-
image: linuxkit/kubernetes-docker-image-cache-common:434f337a5338776f67ab34e2327489c1368f2559
27+
image: linuxkit/kubernetes-docker-image-cache-common:9d0f7a513998ae3fdaf9089655aa9e9118e938f1
2828
cgroupsPath: podruntime/common-cache
2929
files:
3030
- path: /etc/kubelet.sh.conf

Diff for: yml/kube.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
kernel:
2-
image: linuxkit/kernel:4.9.62
2+
image: linuxkit/kernel:4.9.75
33
cmdline: "console=tty0 console=ttyS0"
44
init:
5-
- linuxkit/init:9250948d0de494df8a811edb3242b4584057cfe4
5+
- linuxkit/init:26def2174c74efa0ea8006ebd63ebb5d02e9513e
66
- linuxkit/runc:abc3f292653e64a2fd488e9675ace19a55ec7023
77
- linuxkit/containerd:e58a382c33bb509ba3e0e8170dfaa5a100504c5b
88
- linuxkit/ca-certificates:de21b84d9b055ad9dcecc57965b654a7a24ef8e0
99
onboot:
1010
- name: sysctl
11-
image: linuxkit/sysctl:ce3bde5118a41092f1b7048c85d14fb35237ed45
11+
image: linuxkit/sysctl:4c1ef93bb5eb1a877318db4b2daa6768ed002e21
1212
binds:
1313
- /etc/sysctl.d/01-kubernetes.conf:/etc/sysctl.d/01-kubernetes.conf
1414
readonly: false
@@ -40,7 +40,7 @@ services:
4040
image: linuxkit/sshd:ac5e8364e2e9aa8717a3295c51eb60b8c57373d5
4141
cgroupsPath: systemreserved/sshd
4242
- name: kubelet
43-
image: linuxkit/kubelet:e9b7f3fda7b13331fc5ec07570174df8e8d470ad
43+
image: linuxkit/kubelet:0e6902fbb878f592b8be03605e18d917e622ce31
4444
cgroupsPath: podruntime/kubelet
4545
runtime:
4646
cgroups:

0 commit comments

Comments
 (0)