Dockerfile 832 B

12345678910111213141516171819
  1. FROM debian:buster-slim
  2. # > cni.go:364] [...] exec: "iptables": executable file not found in $PATH
  3. # > docker_sandbox.go:394] failed to read pod IP from plugin/docker: networkPlugin cni [...]: unexpected command output nsenter: failed to execute ip: No such file or directory
  4. RUN apt-get update && apt-get install --yes --no-install-recommends \
  5. ca-certificates \
  6. curl \
  7. iproute2 \
  8. iptables
  9. ARG KUBERNETES_VERSION=v1.17.0
  10. RUN curl --location https://dl.k8s.io/$KUBERNETES_VERSION/kubernetes-node-linux-amd64.tar.gz \
  11. | tar -xvz --directory=/usr/local/bin --strip-components=3 kubernetes/node/bin/kubelet
  12. #RUN apt-get install --yes --no-install-recommends strace
  13. #ENTRYPOINT ["strace", "-f"]
  14. # --healthz-port
  15. HEALTHCHECK CMD [ "$(curl --silent --show-error http://localhost:10248/healthz)" = "ok" ] || exit 1