Kubernetes fails to pull Docker image from artifactoryonline.com -


i using kubernetes on aws run play+akka streams server.

here version details:

client version: version.info{major:"1", minor:"2", gitversion:"v1.2.4+3eed1e3", gitcommit:"3eed1e3be6848b877ff80a93da3785d9034d0a4f", gittreestate:"not git tree"} server version: version.info{major:"1", minor:"2", gitversion:"v1.2.4", gitcommit:"3eed1e3be6848b877ff80a93da3785d9034d0a4f", gittreestate:"clean"}

here deployment script:

apiversion: extensions/v1beta1 kind: deployment metadata:   name: service-validation2   labels:     name: service-validation2 spec:   replicas: 1   strategy:     type: recreate   template:     metadata:       labels:         name: service-validation2     spec:       containers:       - name: service-validation2         image: company-docker-docker-local.artifactoryonline.com/service:1.0.192         ports:         - containerport: 9000       imagepullsecrets:         - name: company-artifactory 

when executing

kubectl create -f deployment.yaml --record 

my pod goes "imagepullbackoff" status.

here events list:

  • successfully assigned service-validation2-3890064411-98444 ip-172-20-0-134.us-west-2.compute.internal

  • pulling image "company-docker-docker-local.artifactoryonline.com/service:1.0.192"

  • failed pull image "company-docker-docker-local.artifactoryonline.com/service:1.0.192": error: image service:1.0.192 not found

  • error syncing pod, skipping: failed "startcontainer" "service-validation2" errimagepull: "error: image service:1.0.192 not found"

however, image exists on repository -- executing:

docker pull company-docker-docker-local.artifactoryonline.com/service:1.0.192 

works on machine.

now, there other pods running on node.

i'm not sure relevant, prior problem, had bug (relating play's application.conf) caused pods crash. fixed.

have authenticated artifactory registry? might logged in on machine, need kubernetes cluster authenticate it, too.

you can either directly configuring nodes authenticate private repository or go recommended way , using imagepullsecrets.


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -