-
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
Expose ‘—pod-network-cidr’ argument in minikube #3892
Conversation
Can one of the admins verify this patch? |
5c6a5a1
to
3378f84
Compare
/assign @balopat |
Just for the record I had a similar problem of needing to pass a specific parameter to kubeadm and I implemented a generic approach to solve it: #3879 |
I'd be happy to move it under the --extra-config flag if @marcosdiez 's PR gets approved and other reviewers agree with the approach (I personally think it makes sense to move it there). |
d32903f
to
b79f98f
Compare
#3879 was merged. Should this PR be closed or altered? |
@tstromberg I'll be happy to alter it. Do you want to just resolve the conflicts and keep --pod-network-cidr as a top-level minikube param or do you want to move it under --extra-config? |
c08fb77
to
cfba354
Compare
@tstromberg
The rest of the kubeadm parameters are not allowed and thus will fail if specified in the --extra-conf param in minikube.
If you would like to keep the --extra-conf support for kubeadm, I find the last option the best. It would fail immediately for unsupported params, is extensible in the future to add additional parameters and would not pollute minikube with parameters from kubeadm. |
cfba354
to
b8aac4a
Compare
@11janci - Thanks for the update. Let me give it some thought, as maintaining a whitelist sounds like something that could easily go out of date and cause issues as well. Hmm.. |
@11janci - I thought about it some more, and agree that the 3rd item makes the most sense. I don't think that particular whitelist will be too much of burden to maintain. That said, I'm flexible and will accept this PR in either direction. Thank you again for contributing it! |
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.
Needs merge update.
@tstromberg cool thx, I will look into it over the weekend and hopefully come up with a PR. |
b8aac4a
to
06fac8b
Compare
Please check the failing test for |
Hmm, I must have missed a step somewhere. Good news, this gets a working flannel setup in host-gw mode:
@ksubrmnn this could make the |
/lgtm |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 11janci, PatrickLang If they are not already assigned, you can assign the PR to them by writing 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 |
cc @neolit123 ^^ |
good to hear, thank you sir :) |
similar flag -> config overrides might work eventually in the long term (requires component config work). for now we encourage using
👍 |
With my latest founding we could run minikube + flannel without
From https://github.com/coreos/flannel/blob/master/Documentation/troubleshooting.md#kubernetes-specific what we really needed are kubelet's
|
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.
PR looks good, mostly just spotting some unused code that should be removed.
It's unclear from #3892 (comment) whether or not this PR behaves as expected. Is it ready to ship?
ac1118b
to
16fe31c
Compare
New changes are detected. LGTM label has been removed. |
16fe31c
to
ec5e457
Compare
Hi @tstromberg , |
|
e931416
to
1815387
Compare
1815387
to
21b9e95
Compare
Exposes --pod-network-cidr arg in minikube and forwards it to kubeadm so that it is not necessary to configure the cidr on multiple components separately.
Closes #3865