logdna / logdna-agent-v2

The blazingly fast, resource efficient log collection client
https://logdna.com
MIT License
65 stars 46 forks source link

agent error pulling image #56

Closed Kikobeats closed 3 years ago

Kikobeats commented 3 years ago

Hello,

I just followed the instructions to install the agent inside a k8s cluster

https://docs.logdna.com/docs/logdna-agent-kubernetes#how-to-install-your-agent

kubectl apply -f https://assets.logdna.com/clients/agent-namespace.yaml
kubectl create secret generic logdna-agent-key -n logdna-agent --from-literal=logdna-agent-key=<YOUR LOGDNA INGESTION KEY>
kubectl apply -f https://assets.logdna.com/clients/agent-resources.yaml

Now I can see the agent can't pull the image

kubectl get pods -n=logdna-agent
NAME                 READY   STATUS         RESTARTS   AGE
logdna-agent-785nj   0/1     ErrImagePull   0          3m22s
logdna-agent-pxdq9   0/1     ErrImagePull   0          3m22s
logdna-agent-v9bfx   0/1     ErrImagePull   0          3m22s

Checking the pods events:

Events:
  Type     Reason          Age                   From               Message
  ----     ------          ----                  ----               -------
  Normal   Scheduled       24m                   default-scheduler  Successfully assigned logdna-agent/logdna-agent-pxdq9 to pool-4bgo4nymg-3vvyw
  Normal   SandboxChanged  24m                   kubelet            Pod sandbox changed, it will be killed and re-created.
  Warning  Failed          23m (x3 over 24m)     kubelet            Failed to pull image "logdna/logdna-agent-v2:2.2.0": rpc error: code = Unknown desc = Error response from daemon: manifest for logdna/logdna-agent-v2:2.2.0 not found: manifest unknown: manifest unknown
  Warning  Failed          23m (x3 over 24m)     kubelet            Error: ErrImagePull
  Normal   Pulling         23m (x4 over 24m)     kubelet            Pulling image "logdna/logdna-agent-v2:2.2.0"
  Normal   BackOff         9m37s (x66 over 24m)  kubelet            Back-off pulling image "logdna/logdna-agent-v2:2.2.0"
  Warning  Failed          4m29s (x88 over 24m)  kubelet            Error: ImagePullBackOff

I'm running k8s 1.19. How I can resolve that?

c-nixon commented 3 years ago

Hi, thanks for the report!

That should be it solved now, can you confirm?

Kikobeats commented 3 years ago

It's working, thanks!

Vinodkumarseetha commented 1 year ago

have same issue i am getting" Failed to pull image "logdna/logdna-agent:3.7.0-beta.1": rpc error: code = Unknown desc = Error response from daemon: manifest for logdna/logdna-agent:3.7.0-beta.1 not found: manifest unknown: manifest unknown". while install logdna on k8s

dkhokhlov commented 1 year ago

@Vinodkumarseetha try: logdna/logdna-agent:3.7.0