Welcome to the Linux Foundation Forum!

Lab 3.3 Configure Probes - Liveness Probe - goproxy image not loading

I have followed directions to add the goproxy container with the LivenessProbe. However when I create the deployment the goproxy container is not able to start. It has STATUS ImagePullBackoff. I am able to run the simpleApp with and without its own Readiness Probe per the lab. But goproxy is not working.

  1. $ kubectl get pod
  2.  
  3. NAME READY STATUS RESTARTS AGE
  4. nginx-b68dd9f75-j98b8 1/1 Running 1 42d
  5. registry-6b5bb79c4-5gbwc 1/1 Running 1 42d
  6. try1-7bfc984497-ch5xf 1/2 ImagePullBackOff 0 18m
  7. try1-7bfc984497-nlblj 1/2 ImagePullBackOff 0 18m
  8. try1-7bfc984497-qrxp9 1/2 ImagePullBackOff 0 18m
  9. try1-7bfc984497-sq7zv 1/2 ImagePullBackOff 0 18m
  10. try1-7bfc984497-tqhx6 1/2 ImagePullBackOff 0 18m
  11. try1-7bfc984497-wxrtk 1/2 ImagePullBackOff 0 18m
  12.  
  13. $sudo podman images
  14.  
  15. REPOSITORY TAG IMAGE ID CREATED SIZE
  16. ..etc..
  17. k8s.gcr.io/goproxy 0.1 ca30c529755f 6 years ago 5.5 MB
  18.  
  19. $ simpleapp.yaml excerpt
  20. etc..
  21. spec:
  22. containers:
  23. - image: 10.104.1.130:5000/simpleapp
  24. imagePullPolicy: Always
  25. name: simpleapp
  26. resources: {}
  27. terminationMessagePath: /dev/termination-log
  28. terminationMessagePolicy: File
  29. - name: goproxy
  30. image: k8s.gcr.oi/goproxy:0.1
  31. ports:
  32. - containerPort: 8080
  33. readinessProbe:
  34. tcpSocket:
  35. port: 8080
  36. initialDelaySeconds: 5
  37. periodSeconds: 10
  38. livenessProbe:
  39. tcpSocket:
  40. port: 8080
  41. initialDelaySeconds: 15
  42. periodSeconds: 20
  43. etc..
  44.  

Thanks for any help you can give!

Kathy

Comments

  • Posts: 1,000
    edited April 2022

    Hello,

    You have a typo. The image location is k8s.gcr .io not oi.

    Regards,

  • Posts: 4

    Oh my!! Thank you, I thought I compared it many times!

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training