Welcome to the Linux Foundation Forum!

LFD259: fluentd image not pulled

So I got to step 2.4 and the issue I am running into is that k8s is not pulling the fluentd image. The yaml is below followed by the error:

This is the relevant portion of the describe command showing the errors:

`Name: basicpod
...

fdlogger:
Container ID:
Image: fluent/fluentd
Image ID:
Port:
Host Port:
State: Waiting
Reason: ImagePullBackOff
Ready: False
Restart Count: 0
Environment:
Mounts:
/var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-fdgvk (ro)
Conditions:
Type Status
Initialized True
Ready False
ContainersReady False
PodScheduled True
Volumes:
kube-api-access-fdgvk:
Type: Projected (a volume that contains injected data from multiple sources)
TokenExpirationSeconds: 3607
ConfigMapName: kube-root-ca.crt
ConfigMapOptional:
DownwardAPI: true
QoS Class: BestEffort
Node-Selectors:
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 42s default-scheduler Successfully assigned default/basicpod to ip-172-31-5-160
Normal Pulling 41s kubelet Pulling image "nginx"
Normal Pulled 41s kubelet Successfully pulled image "nginx" in 202.998154ms (203.032769ms including waiting)
Normal Created 41s kubelet Created container webcont
Normal Started 41s kubelet Started container webcont
Normal BackOff 15s (x3 over 41s) kubelet Back-off pulling image "fluent/fluentd"
Warning Failed 15s (x3 over 41s) kubelet Error: ImagePullBackOff
Normal Pulling 3s (x3 over 41s) kubelet Pulling image "fluent/fluentd"
Warning Failed 3s (x3 over 41s) kubelet Failed to pull image "fluent/fluentd": rpc error: code = NotFound desc = failed to pull and unpack image "docker.io/fluent/fluentd:latest": failed to resolve reference "docker.io/fluent/fluentd:latest": docker.io/fluent/fluentd:latest: not found
Warning Failed 3s (x3 over 41s) kubelet Error: ErrImagePull`

Answers

  • I found the answer at the end of this question:: LAB 2.4 Adding fluentd to basic.yaml failing to start. The image name has changed to fluentd.

  • just had the same thing. used

    image: fluentd
    

    and worked ok

Categories

Upcoming Training