Dockerfile 640 B

1234567891011121314151617
  1. FROM debian:buster-slim
  2. # > cni.go:364] [...] exec: "iptables": executable file not found in $PATH
  3. RUN apt-get update && apt-get install --yes --no-install-recommends \
  4. ca-certificates \
  5. curl \
  6. iptables
  7. ARG KUBERNETES_VERSION=v1.17.0
  8. RUN curl --location https://dl.k8s.io/$KUBERNETES_VERSION/kubernetes-node-linux-amd64.tar.gz \
  9. | tar -xvz --directory=/usr/local/bin --strip-components=3 kubernetes/node/bin/kubelet
  10. #RUN apt-get install --yes --no-install-recommends strace
  11. #ENTRYPOINT ["strace", "-f"]
  12. # --healthz-port
  13. HEALTHCHECK CMD [ "$(curl --silent --show-error http://localhost:10248/healthz)" = "ok" ] || exit 1