Skip to content
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 support for adding and removing nodes to Minikube clusters started with --no-kubernetes #16743

Conversation

sfc-gh-jkowalski
Copy link

@sfc-gh-jkowalski sfc-gh-jkowalski commented Jun 20, 2023

Currently, minikube node add and minikube node delete fail for clusters started with --no-kubernetes, this PR fixes that.

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Jun 20, 2023

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: sfc-gh-jkowalski / name: Jarek Kowalski (88f0b1a)

@k8s-ci-robot k8s-ci-robot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Jun 20, 2023
@k8s-ci-robot
Copy link
Contributor

Hi @sfc-gh-jkowalski. 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 /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

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.

@k8s-ci-robot k8s-ci-robot added cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jun 20, 2023
@minikube-bot
Copy link
Collaborator

Can one of the admins verify this patch?

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. and removed cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. labels Jun 20, 2023
@medyagh
Copy link
Member

medyagh commented Jun 22, 2023

@sfc-gh-jkowalski thank you for this PR, do you mind sharing, was there a real use case for this feature ? I am curious in real world how one would want this feature?
initially people were interested in this for using Docker inside minikube

}

// otherwise just add a node without Kubernetes.
return ClusterController{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how would this affect output of "minikube profile list" ?

Copy link
Author

@sfc-gh-jkowalski sfc-gh-jkowalski Jul 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$ minikube -p test1 start --no-kubernetes
$ minikube -p test2 start --no-kubernetes
$ minikube -p test2 node add
$ minikube -p test2 node add
$ minikube profile list     
|---------|-----------|---------|---------------|------|---------|---------|-------|--------|
| Profile | VM Driver | Runtime |      IP       | Port | Version | Status  | Nodes | Active |
|---------|-----------|---------|---------------|------|---------|---------|-------|--------|
| test1   | docker    | docker  | 192.168.121.2 | 8443 | N/A     | Stopped |     1 |        |
| test2   | docker    | docker  | 172.17.0.2    | 8443 | N/A     | Stopped |     3 |        |
|---------|-----------|---------|---------------|------|---------|---------|-------|--------|

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: sfc-gh-jkowalski
Once this PR has been reviewed and has the lgtm label, please assign afbjorklund for approval. For more information see the Kubernetes Code Review Process.

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@sfc-gh-jkowalski
Copy link
Author

I am curious in real world how one would want this feature?

@sfc-gh-jkowalski thank you for this PR, do you mind sharing, was there a real use case for this feature ? I am curious in real world how one would want this feature? initially people were interested in this for using Docker inside minikube

This is mostly to be able to test our custom K8s provisioning script (using kubeadm, normally running in VMs). The plan is to provision SSH-able "nodes" (which --no-kubernetes gives us), in which we'd run this script to verify cluster provisioning. Having ability to dynamically add/remove nodes, we can also test things like resizing clusters or rolling upgrades.

@sfc-gh-jkowalski
Copy link
Author

@medyagh anything else you'd like me to do here?

@sfc-gh-jkowalski
Copy link
Author

@medyagh gentle ping on this

@sfc-gh-jkowalski
Copy link
Author

@medyagh @afbjorklund @sharifelgamal gentle ping, is there anything I can do to help get this merged?

@sfc-gh-ptabor
Copy link

@spowelljr Could you, please, take a look. Kind request from 2 ex-GKE/ex-GCE ex-Googlers. Thank you.

@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough contributors to adequately respond to all PRs.

This bot triages PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the PR is closed

You can:

  • Mark this PR as fresh with /remove-lifecycle stale
  • Close this PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jan 21, 2024
@sfc-gh-jkowalski
Copy link
Author

/close

@k8s-ci-robot
Copy link
Contributor

@sfc-gh-jkowalski: Closed this PR.

In response to this:

/close

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants