-
Notifications
You must be signed in to change notification settings - Fork 6.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 using CNI #1486
Flannel using CNI #1486
Conversation
chadswen
commented
Jul 31, 2017
- Updates Controller Manager/Kubelet with Flannel's required configuration for CNI
- Removes old Flannel installation
- Install CNI enabled Flannel DaemonSet/ConfigMap/CNI bins and config on host
Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please follow instructions at https://github.com/kubernetes/kubernetes/wiki/CLA-FAQ to sign the CLA. It may take a couple minutes for the CLA signature to be fully registered; after that, please reply here with a new comment and we'll verify. Thanks.
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
ci check this |
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.
Lgtm
Added RBAC support and updated a doc that referenced Docker configuration which is no longer needed. |
Rebased again. |
run_once: true | ||
when: rbac_enabled and flannel_rbac_manifest.changed | ||
|
||
#FIXME: remove when kubespray uses kubernetes 1.7 due to kubernetes/features#124 |
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.
why do we need to purge? we have no previous install that installed flannel as a daemonset. Lines 6-15 should be removed. We can just add proper field, by setting spec.updateStrategy.type to RollingUpdate
{% if rbac_enabled %} | ||
serviceAccountName: flannel | ||
{% endif %} | ||
containers: |
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.
Insert this block:
updateStrategy:
type: RollingUpdate
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.
updateStrategy: type: RollingUpdate
should already be in there. Bottom of the file.
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.
I'm not sure if it's in the right spot, but it's easy enough to test later
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.
Small fix for upgrades, but thanks a lot for this patch
* Updates Controller Manager/Kubelet with Flannel's required configuration for CNI * Removes old Flannel installation * Install CNI enabled Flannel DaemonSet/ConfigMap/CNI bins and config (with portmap plugin) on host * Uses RBAC if enabled * Fixed an issue that could occur if br_netfilter is not a module and net.bridge.bridge-nf-call-iptables sysctl was not set
|
Just a note, the |