How can I use a local docker image in Kubernetes?

后端 未结 1 855
抹茶落季
抹茶落季 2021-01-11 15:31

I have this basic Dockerfile:

FROM nginx
RUN apt-get -y update && apt install -y curl

In the master node of my Kubernetes cluster I

相关标签:
1条回答
  • 2021-01-11 16:18

    Your PODs are scheduled on your worker nodes. Since you set imagePullPolicy to Never you need to make your image available to both nodes. In other words, you need to build it on both nodes as you did on the master.

    As a sidenote, it would be probably easier in the long term if you setup a custom docker registry and push your images there.

    0 讨论(0)
提交回复
热议问题