-
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
New command: kube stop cluster and kube start cluster #1867
Comments
kind is not setting restart = always. kind/pkg/cluster/internal/providers/docker/provision.go Lines 166 to 185 in 1b4b217
You can trivially run start/stop against the node containers yourself ( The podman backend also currently does not support restart. |
I would strongly prefer to improve the experience of creating new clusters anyhow though. We do not want users becoming highly attached to their kind clusters. Testing should be from a clean state and critical data should not be stored permanently in these clusters. They should start quickly and be disposable. |
I wonder if it's possible to change the |
Docker container configuration is not dynamically changeable.
…On Thu, Sep 24, 2020, 15:50 Felipe Santos ***@***.***> wrote:
I wonder if it's possible to change the restart policy dynamically.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1867 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAHADK34Y653GADWYRVPU5DSHPELZANCNFSM4RYZ6VZQ>
.
|
Actually, it's doable: docker update --restart=unless-stopped kind-control-plane https://docs.docker.com/engine/reference/commandline/update/#update-a-containers-restart-policy But for some reason it fails: $ docker update --restart=unless-stopped kind-control-plane
Error response from daemon: Cannot update container 2912eb63c333ce9395d428452474e7d7109167aeffb47196a6484c741705cfcd: runc did not terminate sucessfully: failed to write "a *:* rwm" to "/sys/fs/cgroup/devices/docker/2912eb63c333ce9395d428452474e7d7109167aeffb47196a6484c741705cfcd/devices.allow": write /sys/fs/cgroup/devices/docker/2912eb63c333ce9395d428452474e7d7109167aeffb47196a6484c741705cfcd/devices.allow: invalid argument
: unknown |
In any case It also starts on bootup. If it stops and you reboot it will start, but that's the case with all restart policies except none. |
You're right. The So, for For |
However, for some reason $ docker update --restart=no test
test
$ docker update --restart=no kind-control-plane
Error response from daemon: Cannot update container 2912eb63c333ce9395d428452474e7d7109167aeffb47196a6484c741705cfcd: runc did not terminate sucessfully: failed to write "a *:* rwm" to "/sys/fs/cgroup/devices/docker/2912eb63c333ce9395d428452474e7d7109167aeffb47196a6484c741705cfcd/devices.allow": write /sys/fs/cgroup/devices/docker/2912eb63c333ce9395d428452474e7d7109167aeffb47196a6484c741705cfcd/devices.allow: invalid argument
: unknown |
This is likely because of the cgroups changes in the entrypoint. KIND is
not a normal container (nor are each node actually one container).
…On Fri, Sep 25, 2020, 13:12 Felipe Santos ***@***.***> wrote:
However, for some reason docker update does not work with the kind node
containers (they work in other containers though):
$ docker update --restart=no testtest
$ docker update --restart=no kind-control-planeError response from daemon: Cannot update container 2912eb63c333ce9395d428452474e7d7109167aeffb47196a6484c741705cfcd: runc did not terminate sucessfully: failed to write "a *:* rwm" to "/sys/fs/cgroup/devices/docker/2912eb63c333ce9395d428452474e7d7109167aeffb47196a6484c741705cfcd/devices.allow": write /sys/fs/cgroup/devices/docker/2912eb63c333ce9395d428452474e7d7109167aeffb47196a6484c741705cfcd/devices.allow: invalid argument: unknown
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1867 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAHADK6BIXWSC7UZV6LLOX3SHT2SXANCNFSM4RYZ6VZQ>
.
|
xref: #1913 |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
Rotten issues close after 30d of inactivity. Send feedback to sig-contributor-experience at kubernetes/community. |
@fejta-bot: Closing this issue. 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 Running things the other way around works for me
|
This command would simply run
docker stop
anddocker start
against all the nodes. Despite I can do it by myself, they seem to restart automatically when stopped. Perhapskind
is creating the containers with--restart always
instead of--restart unless-stopped
?It would be better to exist in
kind
since multiple clusters can co-exist, andkind
knows exactly what are the containers which belong to a given cluster.I use
kind
in my development environment, which has limited resources. I have a testing cluster set up that I would not like to lose, but I don't use it always, so I could simply start the cluster as needed and keep my laptop cold otherwise. :)The text was updated successfully, but these errors were encountered: