-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Flannel: change default backend type #3190
Conversation
b79e000
to
cf9abce
Compare
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.
Please update the flannel documentation, and I have a question about the warning message.
Thanks for the PR!
if tf.cluster.Spec.Networking != nil && tf.cluster.Spec.Networking.Flannel != nil { | ||
flannelBackendType := tf.cluster.Spec.Networking.Flannel.Backend | ||
if flannelBackendType == "" { | ||
glog.Warningf("Defaulting flannel backend to udp (not a recommended configuration)") |
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.
Should we tell the user what to do? You need to set this, or you need to migrate to this? We are warning them, but not helping them on what to do.
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.
Added a release note. The docs we have for networking are not terribly instructive at the moment... that might have to be another PR though.
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.
Upgrade path I followed today on a running cluster. Be aware that this creates downtime/connectivity issues ~1 minute. Steps followed:
kops edit cluster
<- change udp for vxlankubectl edit configmap -n kube-system kube-flannel-cfg
<- change udp for vxlankubectl delete pod -n kube-system -l app=flannel
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.
Question
pkg/apis/kops/networking.go
Outdated
@@ -60,6 +60,8 @@ type WeaveNetworkingSpec struct { | |||
|
|||
// Flannel declares that we want Flannel networking | |||
type FlannelNetworkingSpec struct { | |||
// Backend is the backend overlay type we want to use |
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.
What are the possible backend values? Should we have them in the comments?
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.
Added values to comment
cf9abce
to
22974c1
Compare
Comments addressed - PTAL |
@justinsb PR needs rebase |
22974c1
to
7328813
Compare
/retest |
c9fc9a5
to
a4cbe67
Compare
Passing tests - PTAL |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: chrislovecnm, justinsb The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
/test all [submit-queue is verifying that this PR is safe to merge] |
@justinsb PR needs rebase |
We support udp, which has to the default for backwards-compatibility, but also new clusters will now use vxlan.
a4cbe67
to
31c1a08
Compare
/lgtm cancel //PR changed after LGTM, removing LGTM. @chrislovecnm @justinsb |
/retest |
31c1a08
to
f463a8e
Compare
Reapplying LGTM after rebase |
/test all [submit-queue is verifying that this PR is safe to merge] |
Automatic merge from submit-queue |
We support udp, which has to the default for backwards-compatibility,
but also new clusters will now use vxlan.