Skip to content

[Request]: Add container cluster stop and container cluster start. #2440

Description

@jglogan

Feature or enhancement request details

#2156 identified a bug in container k8s start where it didn't account for containers receiving new IP addresses when stopped and started.

#2290 temporarily removed container k8s start, indicating that clusters are not restartable - you need to remove a stopped cluster and create a new one, for example, if you do container system stop and container system start.

#2289 purported to fix the IP rotation and certificate regeneration issue for single node clusters. However, @mxschmitt noted that the kubeconfig.conf still used the old container IP, and suggested instead using 127.0.0.1 as a simple and reliable option (#2158). I believe kind uses an internal/external API endpoint approach like this too.

Not being able to restart a stopped cluster limits the utility of the feature, and is a poor user experience. We need two subcommands for container cluster - stop which stops all containers for the cluster, and start which starts all cluster containers (whether the containers were stopped via the subcommand or a container system stop/start, logout/login, or reboot) and ensures the cluster is operational.

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

  1. added theissue type on Oct 29, 2026
  2. zdk commented on Nov 2, 2026

    @zdk
    Contributor

    @jglogan if it's not already in-progress from your side, let me take on this.
    After checking the the issue, I think this issue needs service discovery rather than fixed ips which is basically dns.
    My plan is to set controlPlaneEndpoint to cluster name then workers join with that name, cluster start write/update the hosts file after boot. Also, cluster stop should stop both cp and workers.
    I would split into 2 PRs:

    1. the create-time endpoint change first
    2. the stop/start with an integration test that forces an IP change and checks Service traffic from a pod.
      What would you think ?
  3. self-assigned this
    on Nov 9, 2026
  4. adityaramani commented on Nov 9, 2026

    @adityaramani
    Contributor

    Hello @zdk thanks for volunteering to take this up! Sorry I hadnt self-assigned this issue earlier.
    I just opened up a PR for this, and the changes are similar to what you proposed.

    Can you please help in reviewing the PR to see if it matches your expectations?

  5. zdk commented on Nov 10, 2026

    @zdk
    Contributor

    @adityaramani sure, no worries! I'll review your PR.

  6. SVilgelm commented on Nov 18, 2026

    @SVilgelm

    +1. On 1.7.1 a cluster can't come back from any stop: after container system stop/start the node stays stopped with no IP and container start <node> returns not found. Even a reboot inside the node leaves it stopped for good. The only way back is delete and re-create. Seen on M1 and M4 Pro, macOS 27.2.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions