10
respostas

aluracursos/portal-noticias:1

Pessoal Boa Noite.

Sou novo no assunto, não consigo entender como ele vai achar a imagem Docker "aluracursos/portal-noticias:1" sendo que não baixei nada.

Inclusive a minha deu erro, e para mim fez sentido o erro.

kubectl describe pod portal-noticias
Name:         portal-noticias
Namespace:    default
Priority:     0
Node:         minikube/192.168.59.101
Start Time:   Sat, 18 Jun 2022 21:43:54 -0300
Labels:       <none>
Annotations:  <none>
Status:       Pending
IP:           172.17.0.3
IPs:
  IP:  172.17.0.3
Containers:
  portal-noticias-container:
    Container ID:   
    Image:          aluracursos/portal-noticias:1
    Image ID:       
    Port:           <none>
    Host Port:      <none>
    State:          Waiting
      Reason:       ImagePullBackOff
    Ready:          False
    Restart Count:  0
    Environment:    <none>
    Mounts:
      /var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-6n7tq (ro)
Conditions:
  Type              Status
  Initialized       True 
  Ready             False 
  ContainersReady   False 
  PodScheduled      True 
Volumes:
  kube-api-access-6n7tq:
    Type:                    Projected (a volume that contains injected data from multiple sources)
    TokenExpirationSeconds:  3607
    ConfigMapName:           kube-root-ca.crt
    ConfigMapOptional:       <nil>
    DownwardAPI:             true
QoS Class:                   BestEffort
Node-Selectors:              <none>
Tolerations:                 node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
                             node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
Events:
  Type     Reason          Age                    From               Message
  ----     ------          ----                   ----               -------
  Normal   Scheduled       14m                    default-scheduler  Successfully assigned default/portal-noticias to minikube
  Normal   Pulling         14m                    kubelet            Pulling image "aluracursos/portal-noticias:1"
  Normal   SandboxChanged  5m29s                  kubelet            Pod sandbox changed, it will be killed and re-created.
  Warning  Failed          5m22s                  kubelet            Failed to pull image "aluracursos/portal-noticias:1": rpc error: code = Unknown desc = failed to register layer: error creating overlay mount to /var/lib/docker/overlay2/1958972857a5358a0ff3aa0d8968b4248e925aa78c69b02c88327491b65a58a2/merged: too many levels of symbolic links
  Warning  Failed          5m1s                   kubelet            Failed to pull image "aluracursos/portal-noticias:1": rpc error: code = Unknown desc = failed to register layer: error creating overlay mount to /var/lib/docker/overlay2/6a96bffbb6c59bd825813c813e70937546a5d9425bcb845b4ddd01247954b528/merged: too many levels of symbolic links
  Warning  Failed          4m32s                  kubelet            Failed to pull image "aluracursos/portal-noticias:1": rpc error: code = Unknown desc = failed to register layer: error creating overlay mount to /var/lib/docker/overlay2/c3f8407330299b8d2f593de426178560bdcbcaa6454405f13ac773d7b3e2e98b/merged: too many levels of symbolic links
  Normal   Pulling         3m51s (x4 over 5m28s)  kubelet            Pulling image "aluracursos/portal-noticias:1"
  Warning  Failed          3m44s (x4 over 5m22s)  kubelet            Error: ErrImagePull
  Warning  Failed          3m44s                  kubelet            Failed to pull image "aluracursos/portal-noticias:1": rpc error: code = Unknown desc = failed to register layer: error creating overlay mount to /var/lib/docker/overlay2/ea2b1f518eaf10fa6dd8a3117e8fee95fc55ff0a2fa0111efe4dd668b17a038b/merged: too many levels of symbolic links
  Warning  Failed          3m18s (x6 over 5m21s)  kubelet            Error: ImagePullBackOff
  Normal   BackOff         14s (x19 over 5m21s)   kubelet            Back-off pulling image "aluracursos/portal-noticias:1"
10 respostas

Alguém? :(

docker pull aluracursos/portal-noticias:1 resolve

docker.io/aluracursos/portal-noticias:1docker.io/aluracursos/portal-noticias:1

consegue botando como image no yaml esse endereço, o de cima tava dando erro.

Oi

Eu fiz o download, mas mesmo assim não funciona.

Fiz isso também: docker.io/aluracursos/portal-noticias:1

apiVersion: v1
kind: Pod
metadata:
  name: portal-noticias
spec:
  containers:
   - name: portal-noticias-container
     image: docker.io/aluracursos/portal-noticias:1

nada ainda? eu consegui assim. também fiz o login no dockerhub e dei um docker pull no repo

SIm :(


Failed to pull image "docker.io/aluracursos/portal-noticias:1": rpc error: code = Unknown desc = failed to register layer: error creating overlay mount to /var/lib/docker/overlay2/e0e5de4cf02d6a17cd531691bc38b0004b0ee5038fecb516031ba42725e256f0/merged: too many levels of symbolic links
docker pull aluracursos/portal-noticias:1
1: Pulling from aluracursos/portal-noticias
5e6ec7f28fb7: Pull complete 
cf165947b5b7: Pull complete 
7bd37682846d: Pull complete 
99daf8e838e1: Pull complete 
ae320713efba: Pull complete 
ebcb99c48d8c: Pull complete 
9867e71b4ab6: Pull complete 
936eb418164a: Pull complete 
bc298e7adaf7: Pull complete 
ccd61b587bcd: Pull complete 
b2d4b347f67c: Pull complete 
56e9dde34152: Pull complete 
9ad99b17eb78: Pull complete 
34d893420309: Pull complete 
325121df93a2: Pull complete 
68e4a08a28dd: Pull complete 
5f8c618918d8: Pull complete 
4f738b8ea6ac: Pull complete 
8fed9a833c4f: Pull complete 
678d1c7bc2c6: Pull complete 
6fa3764a8476: Pull complete 
fe57d4b1727b: Pull complete 
2f2a74b01818: Pull complete 
57cb082a9c1b: Pull complete 
80975b8ebf6c: Pull complete 
Digest: sha256:c1f4e01ee56e948ea9b420ded272d3440b9d45afb5d7ba1c389e79487edfeec0
Status: Downloaded newer image for aluracursos/portal-noticias:1
docker.io/aluracursos/portal-noticias:1
bruno@BRNTBK-TECH148:/media/bruno/d60b283b-ca55-4609-8918-3d87f36f2bfc/Bruno/Estudos/Kubernetes/KUBERNETES-ALURA$ kubectl apply -f  portal-noticias.yaml
pod/portal-noticias unchanged
bruno@BRNTBK-TECH148:/media/bruno/d60b283b-ca55-4609-8918-3d87f36f2bfc/Bruno/Estudos/Kubernetes/KUBERNETES-ALURA$ kubectl describe pod 
Name:         portal-noticias
Namespace:    default
Priority:     0
Node:         minikube/192.168.59.101
Start Time:   Tue, 28 Jun 2022 17:19:53 -0300
Labels:       <none>
Annotations:  <none>
Status:       Pending
IP:           172.17.0.3
IPs:
  IP:  172.17.0.3
Containers:
  portal-noticias-container:
    Container ID:   
    Image:          docker.io/aluracursos/portal-noticias:1
    Image ID:       
    Port:           <none>
    Host Port:      <none>
    State:          Waiting
      Reason:       ErrImagePull
    Ready:          False
    Restart Count:  0
    Environment:    <none>
    Mounts:
      /var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-zwljh (ro)
Conditions:
  Type              Status
  Initialized       True 
  Ready             False 
  ContainersReady   False 
  PodScheduled      True 
Volumes:
  kube-api-access-zwljh:
    Type:                    Projected (a volume that contains injected data from multiple sources)
    TokenExpirationSeconds:  3607
    ConfigMapName:           kube-root-ca.crt
    ConfigMapOptional:       <nil>
    DownwardAPI:             true
QoS Class:                   BestEffort
Node-Selectors:              <none>
Events:
  Type     Reason     Age                  From               Message
  ----     ------     ----                 ----               -------
  Normal   Scheduled  2m16s                default-scheduler  Successfully assigned default/portal-noticias to minikube
  Warning  Failed     2m9s                 kubelet            Failed to pull image "docker.io/aluracursos/portal-noticias:1": rpc error: code = Unknown desc = failed to register layer: error creating overlay mount to /var/lib/docker/overlay2/e97129b42ca5c7fd556dc4798cec40f85654e777be80c55dec4945bf42b3845e/merged: too many levels of symbolic links
  Warning  Failed     109s                 kubelet            Failed to pull image "docker.io/aluracursos/portal-noticias:1": rpc error: code = Unknown desc = failed to register layer: error creating overlay mount to /var/lib/docker/overlay2/e0e5de4cf02d6a17cd531691bc38b0004b0ee5038fecb516031ba42725e256f0/merged: too many levels of symbolic links
  Warning  Failed     81s                  kubelet            Failed to pull image "docker.io/aluracursos/portal-noticias:1": rpc error: code = Unknown desc = failed to register layer: error creating overlay mount to /var/lib/docker/overlay2/ac55eef33f6957efce9e4aacd5ea5671cec578df8809cffa4c76426aea253743/merged: too many levels of symbolic links
  Normal   Pulling    31s (x4 over 2m16s)  kubelet            Pulling image "docker.io/aluracursos/portal-noticias:1"
  Warning  Failed     24s (x4 over 2m9s)   kubelet            Error: ErrImagePull
  Warning  Failed     24s                  kubelet            Failed to pull image "docker.io/aluracursos/portal-noticias:1": rpc error: code = Unknown desc = failed to register layer: error creating overlay mount to /var/lib/docker/overlay2/692ae04e3328bc57896295be7b79a742fc1a1dfee99d82f2f4e426fdc0f7b275/merged: too many levels of symbolic links
  Normal   BackOff    10s (x6 over 2m9s)   kubelet            Back-off pulling image "docker.io/aluracursos/portal-noticias:1"
  Warning  Failed     10s (x6 over 2m9s)   kubelet            Error: ImagePullBackOff
bruno@BRNTBK-TECH148:/media/bruno/d60b283b-ca55-4609-8918-3d87f36f2bfc/Bruno/Estudos/Kubernetes/KUBERNETES-ALURA$ kubectl get pod
NAME              READY   STATUS             RESTARTS   AGE
portal-noticias   0/1     ImagePullBackOff   0          2m27s

Baixa a versão do docker informado no curso, outras versões dão indisponibilidade e realmente não sobe quase nada; Sobe sua pergunta, o docker instalado na sua máquina ja faz as funções, por isso encontra a imagem na internet as imagens ficam em um repositório exemplo: (você guarda a sua comida no armário e quando você precisar pegar vai estar lá então é igual as imagens, quando alguém precisa, a imagem está disponivel para donwload e é baixado através do docker)

Professor Daniel deixou o link para download na aula anterior no modulo 2, vai resolver seus problemas, estava com todos os problemas e só resolveu aqui para eu com a versão informada.

Obs.: tem que estar assim o seu arquivo YAML para que dê certo, só copiar e voltar aos estudos boa sorte

apiVersion: v1 kind: Pod metadata: name: portal-noticias spec: containers:

- name: portal-noticias-container
  image: docker.io/aluracursos/portal-noticias:1

Boa Tarde.

Eu vi esse link, porem eu uso Linux. :(