Setting up the Kubernetes Scheduler step fails?

Hello has anyone finalized this training. On Setting up the Kubernetes Scheduler I get following error:

# kubectl get componentstatuses --kubeconfig admin.kubeconfig

Error from server (Forbidden): componentstatuses is forbidden: User "admin" cannot list resource "componentstatuses" in API group "" at the cluster scope

  • post-author-pic
    Serra Consultancy Services Ltd O
    11-13-2018

    If i use only  "kubectl get componentstatuses" which uses default /var/lib/kubernetes/kube-scheduler.kubeconfig it works so i think we need to create admin user somewhere on training

  • post-author-pic
    Will B
    11-13-2018

    The admin.kubeconfig should work. Are you using a different version of Kubernetes than the course uses? Otherwise, there may be a problem with your admin.kubeconfig which could cause some things not to work later when you need that file.

  • post-author-pic
    Serra Consultancy Services Ltd O
    11-14-2018

    Exactly I have setup another environment now it works.

  • post-author-pic
    Will B
    11-15-2018

    Glad to hear it's working!

Looking For Team Training?

Learn More