deployment stop destroys entire kind cluster even when shared by multiple deployments #979

Open
opened 2026-01-24 17:56:00 +00:00 by AFDudley · 0 comments
Owner

Problem

When running laconic-so deployment stop for a k8s-kind deployment, it deletes the entire kind cluster instead of just stopping the pods for that specific deployment. This is destructive when multiple stacks share the same kind instance.

Steps to Reproduce

  1. Create two deployments targeting the same k8s-kind cluster (e.g., gorbagana-rpc and trashscan-explorer)
  2. Run laconic-so deployment --dir <first-deployment> stop
  3. The entire kind cluster is deleted, taking down ALL deployments

Expected Behavior

deployment stop should only remove the k8s resources (pods, services, configmaps) for that specific deployment, preserving the kind cluster and other deployments.

Actual Behavior

The command runs kind delete cluster which destroys the entire cluster.

Suggested Fix

Only delete clusters explicitly AND when there are no other deployments using it:

  • Track which deployments are using a shared kind cluster
  • Refuse to delete the cluster if other deployments are still active
  • Require an explicit flag (e.g., --delete-cluster) to force cluster deletion
## Problem When running `laconic-so deployment stop` for a k8s-kind deployment, it deletes the entire kind cluster instead of just stopping the pods for that specific deployment. This is destructive when multiple stacks share the same kind instance. ## Steps to Reproduce 1. Create two deployments targeting the same k8s-kind cluster (e.g., gorbagana-rpc and trashscan-explorer) 2. Run `laconic-so deployment --dir <first-deployment> stop` 3. The entire kind cluster is deleted, taking down ALL deployments ## Expected Behavior `deployment stop` should only remove the k8s resources (pods, services, configmaps) for that specific deployment, preserving the kind cluster and other deployments. ## Actual Behavior The command runs `kind delete cluster` which destroys the entire cluster. ## Suggested Fix Only delete clusters explicitly AND when there are no other deployments using it: - Track which deployments are using a shared kind cluster - Refuse to delete the cluster if other deployments are still active - Require an explicit flag (e.g., `--delete-cluster`) to force cluster deletion ## Related - https://github.com/gorbagana-dev/gorbagana-rpc/issues/9
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cerc-io/stack-orchestrator#979
No description provided.