Welcome to the Linux Foundation Forum!

Lab 5.2. Explore API Calls

I am doing the lab Lab 5.2. Explore API Calls. On the step 2 the recommendation is:

Run this command again, preceded bystrace. You will get a lot of output. Near the end you will note severalopenatfunctions to a local directory,/home/student/.kube/cache/discovery/k8scp6443.

When I am running this command the output that I get is the following:

openat(AT_FDCWD, "/root/.kube/cache/discovery/localhost_8080/servergroups.json", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)

So when I try to cd to the directory I also get an error: (No such file or directory)
Has anyone seen this? How can I proceed?

Answers

  • chrispokorni
    chrispokorni Posts: 2,349

    Hi @seignatev,

    If you closely follow the lab guide, you will notice that the kubectl command is not run by root, nor it is configured for root. Instead, it is configured and run by a non-root user, in our case that is the student user.

    Please run the kubectl and strace commands as directed by the lab.

    Regards,
    -Chris

Categories

Upcoming Training