Welcome to the Linux Foundation Forum!

Why is the cluster role creation command fail for me?

During Lesson 8, Access Minikube, APIs with Authentication part I tried to apply the commands listed there but I get the following:

kubectl create clusterrole api-access-root --verb=get --non-resource-url=/*
zsh: no matches found: --non-resource-url=/*

what could be the problem? do I miss something?
(The previous section's commands, APIs with 'kubectl proxy', worked without a problem)

Answers

  • chrispokorni
    chrispokorni Posts: 2,487

    Hi @petermarkus,

    The command looks syntactically correct, and works without any issues in bash. I suspect it may just be a copy/paste issue with zsh and how it interprets any possible invisible characters.
    Can you try typing out the command instead of copy/pasting? Perhaps switching to bash only for this exercise?
    If it dose not work due to local environment settings, feel free to move on to the next exercise.

    Regards,
    -Chris

  • petermarkus
    petermarkus Posts: 10
    edited May 21

    Thank you very much @chrispokorni your answer, I tried typing and copy-pasting it as well before. In the meantime I progressed with the training material but when I will have some time I will get back to this because I am curious and will try the switch to bash if it is working like that.

Categories

Upcoming Training