Após correr o comando
kubectl apply -f k8s/Voll-med.yaml
Os pods não ficam prontos:
~ kubectl get pods
NAME READY STATUS RESTARTS AGE
vollmed-f88895df7-8kb8q 0/1 ErrImagePull 0 11s
vollmed-f88895df7-l7p25 0/1 ErrImagePull 0 11s
vollmed-f88895df7-xcxkv 0/1 ErrImagePull 0 11s
E o pod fica com os seguintes eventos registados:
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 21s default-scheduler Successfully assigned default/vollmed-f88895df7-8kb8q to minikube
Normal Pulling 20s kubelet Pulling image "leonardosartorello/volmed:v8"
Warning Failed 13s kubelet Failed to pull image "leonardosartorello/volmed:v8": Error response from daemon: pull access denied for leonardosartorello/volmed, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
Warning Failed 13s kubelet Error: ErrImagePull
Normal BackOff 12s kubelet Back-off pulling image "leonardosartorello/volmed:v8"
Warning Failed 12s kubelet Error: ImagePullBackOff
Mesmo depois de fazer docker login o erro persiste.
PS: Já identifiquei o erro, o nome da imagem está errado.