docs icon indicating copy to clipboard operation
docs copied to clipboard

Instructions for installing kubectl aren't specifying the same version EE uses

Open mbentley opened this issue 8 years ago • 6 comments

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.

mbentley avatar May 23 '18 19:05 mbentley

☝️ 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

millerdz avatar Jul 13 '18 15:07 millerdz

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.

aaroniscode avatar Jul 27 '18 20:07 aaroniscode

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)

joeabbey avatar Jul 27 '18 20:07 joeabbey

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?

tfoxnc avatar Jul 27 '18 21:07 tfoxnc

Really like Olly's install process in his pull request #7134

aaroniscode avatar Jul 30 '18 17:07 aaroniscode

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

docker-robott avatar Mar 13 '23 03:03 docker-robott