How to upgrade kubectl client version

前端 未结 8 1339
滥情空心
滥情空心 2020-12-24 06:39

I want to upgrade the kubectl client version to 1.11.3.

I executed brew install kubernetes-cli but the version doesnt seem to be updating.



        
8条回答
  •  旧巷少年郎
    2020-12-24 06:49

    Install specific version of kubectl

    curl -LO https://storage.googleapis.com/kubernetes-release/release//bin/darwin/amd64/kubectl

    For your case if you want to install version v1.11.3 then replace specific-kubectl-version with v1.11.3

    Then make this binary executable

    chmod +x ./kubectl
    

    Then move this binary to your PATH

    sudo mv ./kubectl $(which kubectl)
    

提交回复
热议问题