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:
"student@master:/$ sudo kubectl get deployment hog -o yaml > hog.yaml
-bash: hog.yaml: Permission denied"

Welcome!

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

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

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