-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Canal v3 #5927
Canal v3 #5927
Conversation
Adding the manifests for kubernetes >=1.9 to move to canal version 3.2.3. Admittedly I don't like the fact the users are unable to override or select the version of canal they wish to use, but as none of the networking spec have this feature i'm reluctant to add it. The PR upgrades kops cluster running kubernetes >=1.9.0 to canal v3.2.3
/assign @KashifSaadat |
upup/models/cloudup/resources/addons/networking.projectcalico.org.canal/k8s-1.9.yaml.template
Outdated
Show resolved
Hide resolved
pkg/apis/kops/validation/legacy.go
Outdated
// https://docs.projectcalico.org/v3.2/getting-started/kubernetes/requirements | ||
if c.Spec.KubeProxy.ProxyMode == "ipvs" { | ||
if kubernetesRelease.LT(semver.MustParse("1.9.3")) { | ||
// @NOTE: i'm not sure about this one, it could block someone from upgrading i.e. running 1.9.2 + canal + with pre GA ipvs .. perhaps drop? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's probably better to update the bootstrapchannelbuilder
for Canal v3 to only apply on K8s v1.9.3+ and leave the v2.6 deployment to k8s versions below that (KubernetesVersion: ">=1.9.3"
) . You can then drop the validation code here and users upgrading with ipvs mode shouldn't be blocked.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep... that must so much more sense!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks this is looking great, and nice to have v3 in finally :)
I've left a couple small comments, but other than that if you've validated the upgrade process from v2.6 to v3+ then LGTM :) Would be good to have another set of eyes over the change.
…the check in validation due to blocking, or locking the version to 1.9.3, as they might not be using ipvs anyway. I'm gonna leave it for another PR or perhaps leave kube admins to decide for now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GA apiversions instead deprecated betas. apart it LGTM
# as the Calico CNI plugins and network config on | ||
# each master and worker node in a Kubernetes cluster. | ||
kind: DaemonSet | ||
apiVersion: extensions/v1beta1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
apps/v1
since kubernetes 1.9. prior are deprecated
--- | ||
|
||
kind: ClusterRole | ||
apiVersion: rbac.authorization.k8s.io/v1beta1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rbac.authorization.k8s.io/v1
# Flannel roles | ||
# Pulled from https://github.com/coreos/flannel/blob/master/Documentation/kube-flannel-rbac.yml | ||
kind: ClusterRole | ||
apiVersion: rbac.authorization.k8s.io/v1beta1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rbac.authorization.k8s.io/v1
|
||
# Bind the flannel ClusterRole to the canal ServiceAccount. | ||
kind: ClusterRoleBinding | ||
apiVersion: rbac.authorization.k8s.io/v1beta1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rbac.authorization.k8s.io/v1
--- | ||
|
||
# Bind the ClusterRole to the canal ServiceAccount. | ||
apiVersion: rbac.authorization.k8s.io/v1beta1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rbac.authorization.k8s.io/v1
fixed up the api versions .. many thanks @ese :-) |
/hold |
/hold cancel |
upup/models/cloudup/resources/addons/networking.projectcalico.org.canal/k8s-1.9.yaml.template
Outdated
Show resolved
Hide resolved
…to flannel v0.9.0
@KashifSaadat .. done :-) |
Awesome, thanks @gambol99 ! /lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gambol99, KashifSaadat The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Tested as working from an upgrade from v2.6.7 ... but needs additional confirmations? ..