-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Dockerfile.amd64
36 lines (30 loc) · 1.07 KB
/
Dockerfile.amd64
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
FROM docker.io/alpine:3.20 AS fetcher
LABEL maintainer="Dalton Hubble <[email protected]>"
ARG KUBELET=v1.31.0
ARG ARCH=amd64
ARG SHA=8c196abfbf0f6a781fdc0308f83be1bbeecf8e6286e397a208a895638b2a6b4a5e2477eeb902e4989dc60b6b0a1abb6097ca50c31ea39bb0948f028bcaf41095
RUN apk add curl && \
curl -L https://dl.k8s.io/${KUBELET}/kubernetes-node-linux-${ARCH}.tar.gz -o node.tar.gz && \
echo "${SHA} node.tar.gz" | sha512sum -c && \
tar xzf node.tar.gz kubernetes/node/bin/kubectl kubernetes/node/bin/kubelet
FROM us.gcr.io/k8s-artifacts-prod/build-image/debian-iptables:bullseye-v1.5.5
LABEL maintainer="Dalton Hubble <[email protected]>"
RUN clean-install --allow-change-held-packages libcap2
RUN clean-install \
bash \
ca-certificates \
ceph-common \
cifs-utils \
e2fsprogs \
xfsprogs \
ethtool \
glusterfs-client \
iproute2 \
jq \
nfs-common \
socat \
udev \
util-linux
COPY --from=fetcher /kubernetes/node/bin/kubelet /usr/local/bin/kubelet
COPY --from=fetcher /kubernetes/node/bin/kubectl /usr/local/bin/kubectl
ENTRYPOINT ["/usr/local/bin/kubelet"]