My Database Migration Job Keeps Dying On EKS. The Answer Was In describe

debuggingkubernetespods9 replies 路 247 views 路 started
  1. new to Kubernetes, please be gentle. my database migration job on EKS wont stay up:

    This app can't run on your PC

    This app can't run on your PC
    
    To find a version for your PC, check with the
    software publisher.
    

    the stauts says CrashLoopBackOff... i googled it and it seems to just mean it crashes alot.. :D thanks, Kubernetes... how do i find out WHY?

    I can see teh pod, I can see the restart counter, and thats about it. every tutorial assumes you already know where to look. A short checklist of commands would honestly make my week. im about to throw this thing out the window lol

    4
  2. Exit code 0 with CrashLoopBackOff means teh main process ends. Containers must run a foreground prcoess. A command that daemonzies, or a script that finishes, causes eaxctly this. Check command and args in the pod spec override teh image CMD the way u expect.

    thumbsup

    2 0 helpful
  3. dumb question but how do i even check the update ??

    5 0 helpful
  4. Liveness probes can kill a healthy-but-slow app. If describe shows Liveness probe failed events before restarts, increase initialDelaySeconds, or betetr, add a startupProbe so liveness only starts checking after teh app is up.

    4 1 helpful
  5. hmmm if the image works locally but not in teh cluster, check securityContext: many clusters run with runAsNonRoot or a read-only root filesystem. an app that writes to its own directory or binds port 80 as non-root will crash. fingers crossed 馃

    4 0 helpful
  6. ok so told my boss it would take 10 minutes... its been my entire lunch break what am i doing wrong??

    1 1 helpful
  7. hmmm +1 same here

    lol

    9 1 helpful
  8. ehh disagree on overriding teh command for debugging in prod; use an ephemeral debug container instead so u don't change teh running spec.

    3 3 helpful
  9. following, having the same problem. reading this at 2am instaed of sleeping, no regrets

    5 3 helpful
  10. @rhea_regex wowww ok logs --previous pointed straight at a missing Secret key, fixed teh name and the database migration job is Running with zero restarts.

    5 0 helpful

Reply to this topic

Sign in or create an account to reply.