And if you are on different machines, you need to push that image somewhere so it can be pulled by kubelet
On Wed, Sep 20, 2017 at 9:49 AM, Warren Strange <warren.stra...@gmail.com> wrote: > > > ImagePullBackOff means that Kubernetes can not find the image. > > You have: > image: agentc > > You need: > > image: library/agentc:latest > > This also assumes you have done a "docker build" direct to the docker daemon > that your Kubernetes cluster is using. > If you are using minikube, you must make sure you are pointing at the right > docker daemon: > > eval $(minikube docker-env) > docker build .... > > > On Wednesday, September 20, 2017 at 2:20:58 AM UTC-6, paperless wrote: >> >> I have created an image using Docker command >> docker build -t library/app-agentk . >> >> Then I have config file >> >> piVersion: apps/v1beta1 >> kind: Deployment >> metadata: >> name: agent-deployment >> spec: >> replicas: 1 # tells deployment to run 2 pods matching the template >> template: # create pods using pod definition in this template >> metadata: >> # unlike pod-nginx.yaml, the name is not included in the meta data >> as a unique name is >> # generated from the deployment name >> labels: >> app: agentk >> spec: >> containers: >> - name: agentk1 >> image: agentc >> >> I use following command to run the image. >> >> kubectl apply -f deployment.yaml >> >> >> I get following error >> agent-deployment-4152082668-kx39q >> Waiting: ImagePullBackOff >> 0 >> 3 minutes >> subjectmore_vert >> Failed to pull image "agentc": rpc error: code = 2 desc = Error: image >> library/agentc:latest not found >> Error syncing pod > > -- > You received this message because you are subscribed to the Google Groups > "Kubernetes user discussion and Q&A" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to kubernetes-users+unsubscr...@googlegroups.com. > To post to this group, send email to kubernetes-users@googlegroups.com. > Visit this group at https://groups.google.com/group/kubernetes-users. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Kubernetes user discussion and Q&A" group. To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-users+unsubscr...@googlegroups.com. To post to this group, send email to kubernetes-users@googlegroups.com. Visit this group at https://groups.google.com/group/kubernetes-users. For more options, visit https://groups.google.com/d/optout.