-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Add Metal LB addon #7308
Add Metal LB addon #7308
Conversation
Hi @laozc. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: laozc The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Can one of the admins verify this patch? |
Codecov Report
@@ Coverage Diff @@
## master #7308 +/- ##
==========================================
- Coverage 38.02% 37.37% -0.66%
==========================================
Files 147 146 -1
Lines 9017 8894 -123
==========================================
- Hits 3429 3324 -105
- Misses 5164 5165 +1
+ Partials 424 405 -19
|
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.
Addon looks good.
I'm going to need some time to think about where the new flags go. It doesn't feel right to have an addon specific flag in "start".
Could the value be auto-configured or attached to the addon or config command somehow?
It would be difficult to detect the right values for the load balancer IP since it may vary in the user's own network environment. |
I have been thinking about metallb for ingress or load balancer ( alternative to tunnel) @laozc do you mind cleariying which driver have you tested this add-on with ? |
I'm testing it with Hyper-V and KVM drivers and both work fine. |
do u mind also putting an example of the metal lb in the PR description ? and how would this be different than our current minikube tunnel command ? |
The major change is that you don't need to run You may check on the updated PR description. |
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.
Instead of adding more start flags, is it possible to change this PR to use minikube addons configure metallb
? See registry-creds
as an example.
(edit: nevermind, I see you have now done that!)
pkg/minikube/config/types.go
Outdated
FeatureGates string // https://kubernetes.io/docs/reference/command-line-tools-reference/feature-gates/ | ||
ServiceCIDR string // the subnet which kubernetes services will be deployed to | ||
ImageRepository string | ||
LoadBalancerStartIP string |
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 add a comment that the LoadBalancer IP's are currently only used by MetalLB
/ok-to-test |
kvm2 Driver Times for Minikube (PR 7308): [66.72947534900001 67.132664835 67.15591933799999] Averages Time Per Log
docker Driver Times for Minikube (PR 7308): [47.583713524 48.404982374999996 47.210017097999994] Averages Time Per Log
|
This PR configures Metal LB for an ARP based Load Balancer in local network.
This addon was verified with both Hyper-V and KVM driver.
Before using the addons, you may need to use
minikube ip
to get the details for the subnet to find out which IP addresses can be used for the LB to avoid IP address collision.You may then use the following command to configure and enable the addon.
Then you may create a service with type
LoadBalancer
.Eventually the service will obtain an IP.
You may access the External IP on your host.