Welcome to the Linux Foundation Forum!

Lesson 15 - Ingress Demo, permission denied when trying to update hosts

Posts: 82
edited October 2024 in LFS158 Class Forum

Hello,

I am following the demo on Lesson 15 and I encounter the following error when entering the command:

Ingress-demo yaml file seems to be properly configured and created:

I wonder what I am doing wrong.

So far, I have been following along the demo, and result was as expected.

Thanks in advance for your help.

Sincerely,

Josep Maria

Ps: I run kubernetes on a VM with enabled nested virtualisation, so I have been able to follow all the course labs until now. I know I diverted from the original course instructions to have Kubernetes installed in the host vm, but I did so because I experienced problems with the code when K8s was installed on my macOs.

Welcome!

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

Comments

  • For some reason, when using singe ' instead of '', code below was accepted.

    sudo bash -c 'echo $(minikube ip) blue.io green.io >> /etc/hosts'

    However, /etc/hosts file was not updated.

    Therefore I resorted to updating directly the file /etc/hosts via the comand
    $ nano /etc/hosts

    Once oppened, I added an entry entry as per the directions on lesson 15 before the demo.

    I saved the file. I opened the local browser, entered in the address bar either blue.io and green.io and displayed result was as expected.

    I wonder why I could not update file /etc/hosts with the command (with either single or double comma)

    $ sudo bash -c “echo $(minikube ip) blue.io green.io >> /etc/hosts” as in Lesson 15 demo.

    Thank you

  • Hi @josepmaria,

    It may have something to do with the way your terminal interprets the left vs right double quotes.

    Regards,
    -Chris

  • Posts: 82
    edited November 2024

    Hi @chrispokorni ,

    Thank you.

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