Skip to content
This repository has been archived by the owner on Sep 30, 2020. It is now read-only.

K8s version hardcoded? (... or I am wrong) #1070

Closed
ivanilves opened this issue Dec 13, 2017 · 6 comments
Closed

K8s version hardcoded? (... or I am wrong) #1070

ivanilves opened this issue Dec 13, 2017 · 6 comments

Comments

@ivanilves
Copy link
Contributor

ivanilves commented Dec 13, 2017

Hi guys!

One question:

When I use latest (v0.9.9) version of kube-aws I always get K8s cluster of version 1.8.4.

I also see this line of code in kube-aws:
https://github.com/kubernetes-incubator/kube-aws/blob/bc100a61283601fa7a82a544f6d8c8f9acf002fc/core/controlplane/config/config.go#L32

Does this mean that with a particular version of kube-aws I could only use one specific version of Kubernetes?

Does this also mean that to upgrade Kubernetes version on cluster I always need to get new kube-aws ?
... or once deployed with kube-aws cluster should be upgraded to new versions of K8s some other way ?

Thank you!

@camilb
Copy link
Contributor

camilb commented Dec 13, 2017

Hi @ivanilves this is the default version, in case you don not override it in cluster.yaml.

To upgrade the kubernetes version in a cluster, you have to change the version in cluster.yaml, then render and update the stack using kube-aws render stack and kube-aws update --s3-uri s3://bucket_name

If you intent to use previous versions of kubernetes it's better to also use previous versions of kube-aws. Sometimes it may work, but it's possible to have changes that are not backward compatible. kube-aws v0.9.9 works fine with kubernetes v1.8.0 and up.

Update:

It is also possible to override the container image, for example if you preffer to use Google's hyperkube build.

# Version of hyperkube image to use. This is the tag for the hyperkube image repository.
kubernetesVersion: v1.8.5

# Hyperkube image repository to use.
hyperkubeImage:
  repo: gcr.io/google-containers/hyperkube-amd64
  rktPullDocker: true

@ivanilves
Copy link
Contributor Author

ivanilves commented Dec 13, 2017

Thanks @camilb ! The thing is that I am trying to install Kubernetes 1.8.5 by changing the version accordingly in the cluster.yaml and still gettings cluster with 1.8.4... Maybe some my fault, I need to recheck. 🤔

@ivanilves
Copy link
Contributor Author

@camilb you were right!

It works! The error was my own misconfiguration (I was loading wrong cluster.yaml) Thanks again! Closing the issue!

🎉

@sonnysideup
Copy link

I'm curious, what limitations exist (if any) regarding an upgrade to a more recent version of K8s using kube-aws? Stated differently, can I use to v0.9.9 to upgrade to the latest version of K8s v1.8 (latest tag is v1.8.7_coreos.0)? How about K8s v1.9?

@camilb
Copy link
Contributor

camilb commented Jan 22, 2018

@drywheat support for Kubernetes 1.9 was added in #1074 here: https://github.com/kubernetes-incubator/kube-aws/pull/1074/files#diff-ef25536c536667a40b993d4d24ab7567R1915, which is not included in v0.9.9. It's a small change, as mentioned in #1076

@whereisaaron
Copy link
Contributor

@drywheat I've been using 1.8.7 a lot with kube-aws 0.9.9 without problem. Generally Is expect 1.8.x to work with 0.9.9, since they won't make major API version or component changes.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants