Welcome to the Linux Foundation Forum!

Process for improving course content?

Hi @chrispokorni ,

What is the process for submitting information to help improve the course content? Just ran into the following situation, and figured I would make a post; but would like to follow the defined process for submitting this type of information.

The following section...

`Basic Troubleshooting Steps'

Mentions the command

kubectl create deploy busybox --image=busybox --command sleep 3600 # <-- missing blank space between '--' and 'command'

Comments

  • chrispokornichrispokorni Posts: 1,065

    Hi @jcremp77,

    You may use the forum to post such suggestions. The course author will review them and edit the content where deemed necessary.

    However, running the command as suggested above kubectl create deploy busybox --image=busybox -- command sleep 3600 (with a blank space between '--' and 'command') the pod is in an initial RunContainerError status, followed by a permanent CrashLoopBackoff status.

    Regards,
    -Chris

  • jcremp77jcremp77 Posts: 37
    edited April 28

    Hi @chrispokorni ,

    :smile: thanks that explains the other question I had, but I cannot run the command without the space.

    ~$ kubectl create deploy busybox --image=busybox --command sleep 3600
    Error: unknown flag: --command
    See 'kubectl create deployment --help' for usage.

  • jcremp77jcremp77 Posts: 37

    Hi @chrispokorni ,

    Okay I used the following syntax and it appears to be running now.

    kubectl create deploy busybox --image=busybox -- sleep 3600

    NAME READY STATUS RESTARTS AGE
    busybox-5bc85cc8d9-c5nwq 1/1 Running 0 9s

  • chrispokornichrispokorni Posts: 1,065

    Hi @jcremp77,

    The --command flag is no longer supported by the create command, but it may be used with the run command.

    Regards,
    -Chris

  • jcremp77jcremp77 Posts: 37

    Hi @chrispokorni -

    Thank you this worked.

Sign In or Register to comment.