Hi

I try to deploy a simple image hosted on my local registry but I failed.

my YAML file:


apiVersion: v1
kind: Pod
metadata:
  name: test
spec:
 containers:
  - name: test
    image: reg-server.mydomain.local/docker-img:20
    imagePullPolicy: Always
    ports:
    - containerPort: 8800
 imagePullSecrets:
  - name: reqistrypullsecret

after running:
kubectl create -f test.yaml

I got:
NAME      READY     STATUS             RESTARTS   AGE
test     0/1       ImagePullBackOff   0          2h

running:
kubectl describe pod test 
I got:

Failed to pull image "reg-server.mydomain.local/docker-img:20": Error: image 
docker-img:20 not found

On every host (minion) when I try to simple pull an image from my local 
registry ,it works!!!:

docker run -d -it -p 8800:8800 --name test 
reg-server.mydomain.local/pythontest:20

Any idea what am I doing wrong ?












-- 
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.

Reply via email to