123456789101112131415161718192021222324252627282930313233343536373839 |
- FROM debian:buster-slim
- RUN apt-get update && apt-get install --yes --no-install-recommends \
- ca-certificates \
- curl \
- iproute2 \
- iptables \
- socat `
- util-linux `
- RUN update-alternatives --set iptables /usr/sbin/iptables-legacy
- ARG CNI_PLUGINS_VERSION=v0.8.5
- ARG CNI_BIN_DIR=/opt/cni/bin
- ARG CNI_PLUGINS="\
- ./bridge \
- ./host-local \
- ./loopback \
- "
- RUN mkdir --parents $CNI_BIN_DIR \
- && curl --location https://github.com/containernetworking/plugins/releases/download/$CNI_PLUGINS_VERSION/cni-plugins-linux-amd64-$CNI_PLUGINS_VERSION.tgz \
- | tar --ungzip --extract --verbose --directory=$CNI_BIN_DIR -- $CNI_PLUGINS \
- && ls -l --human-readable --all $CNI_BIN_DIR
- ARG KUBERNETES_VERSION=v1.17.0
- RUN curl --location https://dl.k8s.io/$KUBERNETES_VERSION/kubernetes-node-linux-amd64.tar.gz \
- | tar --ungzip --extract --verbose --directory=/usr/local/bin --strip-components=3 kubernetes/node/bin/kubelet
- HEALTHCHECK CMD [ "$(curl --silent --show-error http://localhost:10248/healthz)" = "ok" ] || exit 1
|