Welcome to the Linux Foundation Forum!

Got error: unknown flag: --command in Lesson 12 : Basic Troubleshooting Step Error:

In Lession 12 Basic Troubleshooting Step Error,
I ran the example "kubectl create deploy busybox --image=busybox --command sleep 3600".

But I got error message:

  1. Error: unknown flag: --command
  2. See 'kubectl create deployment --help' for usage.

Check kubectl create --help, I can not find --comand flag. Maybe it has been deprecated.

I run this command in my local minikube.

Thank you.

Welcome!

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

Comments

  • Posts: 2,443

    Hi @weijenlu,

    Thank you for your feedback.
    This shall be revised and corrected as needed in a future course update release.

    Regards,
    -Chris

  • Posts: 1

    This wasn't fixed in the current revision of LFS258. See Lesson 13, "Basic Troubleshooting Steps."

  • If anyone is still having this issue, you can pass sleep command to busybox (or any other container) like this:

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

  • Posts: 2
    edited January 7

    January of 2025 and still no fix in the course. [Content removed by admins as it does not adhere to forum etiquette] This is negligent at this point.

  • Posts: 2,281

    Hi @h1pp13p373

    The course has been updated. Thank you for flagging it.

    Regards,
    Linux Foundation Education

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