-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
[jjo] add kube-router support #3339
[jjo] add kube-router support #3339
Conversation
@jjo: GitHub didn't allow me to request PR reviews from the following users: murali-reddy, andrewsykim. Note that only kubernetes-incubator members and repo collaborators can review this PR, and authors cannot review their own PRs. In response to this: 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. |
FYI I have it working over an openstack deploy, with
Still has some rough edges:
|
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.
The readme file must also be updated with the network plugin and version.
roles/kubernetes-apps/network_plugin/kube-router/tasks/main.yml
Outdated
Show resolved
Hide resolved
roles/kubernetes/master/templates/kubeadm-config.v1alpha2.yaml.j2
Outdated
Show resolved
Hide resolved
|
||
# Enables Service Proxy -- sets up IPVS for Kubernetes Services | ||
# TODO(jjo): this setting currently requires also: | ||
# - no kubeadm_enabled |
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.
If this is yet not supported, do a check in the pre-install stage to make sure it does not happen?
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 for the suggestion:
- added assertion on
not kubeadm_enabled
- added set_fact to override
kube_proxy_mode: none
ifkube-router
is set to replace it
readOnly: true | ||
initContainers: | ||
- name: install-cni | ||
image: busybox |
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.
busybox image is in the downloads file too. Please update to ansible var
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.
Done, although I added a busybox_image_repo
(_tag
)
as I don't feel like using test_image_repo
(and _tag
) for
critical kube-router
pods functionality.
c542723
to
1fad254
Compare
Thanks @woopstar for the thorough review, addressed your comments, PTAL |
1fad254
to
d784960
Compare
@@ -44,6 +44,12 @@ | |||
- { name: openstack_lbaas_enabled, value: "{{ openstack_lbaas_enabled }}" } | |||
ignore_errors: "{{ ignore_assert_errors }}" | |||
|
|||
- name: Stop if kube-router chosen as network_plugin and kubeadm_enabled (not yet supported/verified) |
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.
This is actually a problem. We are about to switch to use kubeadm as default deployment as you can see in #3301
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.
Cool, thanks for the note -- I've reworked logic, and verified ok
also with kubeadm_enabled
installs (noting a caveat re: kubeadm
lack of support for skipping kube-proxy deploy).
eb93517
to
bd4442f
Compare
Thanks again @woopstar for the re^2view, reworked it for |
4111856
to
0ce4454
Compare
ci check this |
70d9193
to
e6c3291
Compare
Addressed latest @woopstar comments, tnx again. |
c4ee8ef
to
fba686a
Compare
why are the job allow to failed ? |
241bbbb
to
8753a01
Compare
8753a01
to
5395c6f
Compare
CI tests all good. Can you squash commits. And also add PriorityClass to the deployment - see #3361 Think we can merge after that, then. |
@woopstar we have autosquash now |
Fixes cloudnativelabs/kube-router#147. * add kube-router as another network_plugin choice * support most used kube-router flags via `kube_router_foo` vars as other plugins * implement replacing kube-proxy (--run-service-proxy=true) via `kube_proxy_mode: none`, verified in a _non kubeadm_enabled_ install, should also work for recent kubeadm releases via `skipKubeProxyInstall: true` config
- verify it working ok w/the kubeadm_enabled and kube_router_run_service_proxy true or false - introduce `kube_proxy_remove` fact, to decouple logic from kube_proxy_mode (which affects kubeadm configmap settings, thus no-good to ab-use it to 'none')
…s on my and existing changes
63c72ad
to
0a083f6
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: woopstar 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 |
Fixes cloudnativelabs/kube-router#147.
kube_router_foo
vars as other pluginskube_proxy_remove
(boolean) factkube-proxy
daemonset creation (Make kube-proxy optional (default to install) kubernetes/kubeadm#776) by removing it
after kubeadm run, added a caveat note to
doc/kube-router.md
kubeadm_enabled: true|false