-
Notifications
You must be signed in to change notification settings - Fork 1.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
[WIP] Add restart cluster command #408
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: tao12345666333 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 |
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.
@tao12345666333 thanks for working on this!
The container's IP will be change, when restart Nodes(containers). We need update the admin.conf.
this seems tricky. if the IP of a load balancer or a control plane node change this means that all workers have to rejoin the cluster. is there a way to make docker restart keep the old IP/port?
if we use docker run with --ip flag maybe resolve it. |
af64afa
to
2f38d22
Compare
Signed-off-by: Jintao Zhang <zhangjintao9020@gmail.com>
2f38d22
to
de495f8
Compare
Signed-off-by: Jintao Zhang <zhangjintao9020@gmail.com>
de495f8
to
cfec24c
Compare
Signed-off-by: Jintao Zhang <zhangjintao9020@gmail.com>
after #461 be merged we can make this simple. although the core issue to be addressed is still IP changes. I will complete this PR as soon as possible after the end of this holiday. I need to complete the following sections.
|
just sharing my thoughts, what's the best option regarding the IP address problem?
I guess that 1 is the option closer to real user scenarios, and looking at docker networking seems possible to assign static ip addresses to the node so a possible solution can be.
|
Thanks for your point. My current practice is the first one. Because the scenario we first encountered was due to "docker restart", #148 this does not guarantee that the original IP is not already occupied. It may not be suitable to start it with the original static IP. Of course, if the restart is done in 1 , then we should select the higher IP in the IP address pool at startup to avoid being occupied. |
Do you have any suggestions? @BenTheElder @neolit123 I think it would be easier to do this by using kubeadm. |
return err | ||
} | ||
|
||
if !node.WaitForDocker(time.Now().Add(time.Second * 60)) { |
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 think this PR will be affected by the changes in:
#461
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.
yes. after the PR has been merged these codes remove.
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 need to rework HAproxy in the new world ™️ as well, so those parts will be getting a PR soon and also will need updating... sorry about that!
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.
do not mind. as long as we can push things forward, it will suffice.
@tao12345666333: PR needs rebase. 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. |
@tao12345666333 I think that the problem is that we are using |
the original issue #148 (comment) with this comment: can we just use container networking instead of IPs (e.g. |
|
I will open another PR to handle the network problem(using Thanks all. 👍 |
It would be really awesome if it was possible to restart kind cluster(s) after for example rebooting (MacOS) your host. I (want to) use kind for local development. My end goal is to replace minikube. Luckily recreating the cluster(s) is really fast, but it would still be nice to just (re)start it. I am currently looking at Velero and see if I can use that to restore the state after recreation. |
@tao12345666333: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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. |
this will need to be revisited on top of the provider work after we figure out the network issues thanks again for the PR, we'll surely reference this when we've resolved the network part and come to revive restart support. |
xref: #148
admin.conf
and others.api-server
,etcd
and some certs.