Dockerfile 951 B

12345678910111213141516171819202122
  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. # k8s.gcr.io/kube-proxy:v1.17.0 uses legacy iptables
  10. RUN update-alternatives --set iptables /usr/sbin/iptables-legacy
  11. ARG KUBERNETES_VERSION=v1.17.0
  12. RUN curl --location https://dl.k8s.io/$KUBERNETES_VERSION/kubernetes-node-linux-amd64.tar.gz \
  13. | tar -xvz --directory=/usr/local/bin --strip-components=3 kubernetes/node/bin/kubelet
  14. #RUN apt-get install --yes --no-install-recommends strace
  15. #ENTRYPOINT ["strace", "-f"]
  16. # --healthz-port
  17. HEALTHCHECK CMD [ "$(curl --silent --show-error http://localhost:10248/healthz)" = "ok" ] || exit 1