“kubectl exec” results in “error: unable to upgrade connection: Unauthorized”

后端 未结 3 467
野趣味
野趣味 2021-01-13 11:21

I tried kubectl exec on a k8s 1.6.4 RBAC-enabled cluster and the error returned was: error: unable to upgrade connection: Unauthorized. docke

3条回答
  •  心在旅途
    2021-01-13 11:41

    Run across this one on my minikube cluster version 1.12.3
    If you're running a minikube cluster, upgrade minikube and it'll be fixed.

    check your minikube version:

    $ minikube update-check
    CurrentVersion: v1.12.3
    LatestVersion: v1.13.0
    

    Minikube docs
    Upgrade(Mac OS):

    brew upgrade minikube
    

提交回复
热议问题