-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
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.21 AS fetcher
LABEL maintainer="Dalton Hubble <dghubble@gmail.com>"
ARG KUBELET=v1.32.0
ARG ARCH=amd64
ARG SHA=37b1c6da21d0b915a8dd372caa2c48715dcc9071191f753b2ebdc812643265b646777ecf781c4d269d5490066968648c3321ce0d56b3ac8d3c528c6357de2e67
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 <dghubble@gmail.com>"
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"]