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:

Error: unknown flag: --command
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.

Comments

  • chrispokorni
    chrispokorni Posts: 2,340

    Hi @weijenlu,

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

    Regards,
    -Chris

  • flainn
    flainn 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

Categories

Upcoming Training