Instructions for installing kubectl aren't specifying the same version EE uses
File: ee/ucp/user-access/kubectl.md
The instructions for installing kubectl aren't specifying the same version EE uses; it is using the latest. It would make sense to install the same version of kubectl as EE.
☝️ Also, note that when you follow the install instructions and get latest kubectl, you'll end up with this error message for your kubectl get pods -n kube-system:
Error from server (NotAcceptable): unknown (get pods)
Workaround:
If you specifically install kubectl v1.10.3 (the client version included with Docker 4 Mac Edge release), then the above commands work as expected. Instead of using this url https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl, you would use this URL: https://storage.googleapis.com/kubernetes-release/release/v1.10.3/bin/linux/amd64/kubectl.
Recommendation:
Change:
From:
https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl
To:
NOTE: The version listed below of v1.9.1 is because that's the newest version that is +1 MINOR version away per Kubernetes Note that kubectl only guarantees compatibility with clusters that are +/-1 minor version away. More Kubernetes version compatibility details.
https://storage.googleapis.com/kubernetes-release/release/v1.9.1/bin/linux/amd64/kubectl
We need to get this fixed. Just spent time with a customer debugging weird errors from kubectl and it was due to them using v1.11.
FYI, DCI is currently installing the kubectl that matches the kubernetes installed in UCP Major.Minor
https://github.com/docker/certified-infrastructure/blob/develop/automation/ansible/roles/kubectl/defaults/main.yml
(If we do start shipping incremental updates, we can easily add that granularity)
This page is shared for multiple versions of EE. I can replace the command with https://storage.googleapis.com/kubernetes-release/release/v1.9.1/bin/linux/amd64/kubectl, but v1.9.1 might not be the right version for everyone.
Is there a command the user can use to get the version and then use it to determine the right location?
Really like Olly's install process in his pull request #7134
Closed issues are locked after 30 days of inactivity. This helps our team focus on active issues.
If you have found a problem that seems similar to this, please open a new issue.
/lifecycle locked