Welcome to the Linux Foundation Forum!

Lab4.2 step3 permission denied

Hi, when I tried Lab4.2 step3, always get a error message, as following:
"[email protected]:/$ sudo kubectl get deployment hog -o yaml > hog.yaml
-bash: hog.yaml: Permission denied"

Comments

  • Hi @Jingze_Ma,

    If you examine closely the command in step 3 of Lab 4.2, and compare it against your command, you will see that you are running the command incorrectly.

    Regards,
    -Chris

  • Hi @chrispokorni, I tried "kubectl get deployment hog -o yaml > hog.yaml" also, same error

  • Hi @Jingze_Ma,

    You can check the permissions on that file and/or list the processes/apps currently using (and possibly locking) the file or I/O.

    Regards,
    -Chris

Categories

Upcoming Training