Skip to content

Stale NBs are left when deleting the underlying K8S cluster #140

Open

Description

@julsemaan

General:

  • Have you removed all sensitive information, including but not limited to access keys and passwords?
  • Have you checked to ensure there aren't other open or closed Pull Requests for the same bug/feature/question?

Bug Reporting

When using the Linode CCM in K8S clusters and deleting the underlying cluster while not deleting the Service leaves a stable NB in the Linode account.

Expected Behavior

Explore having some kind of finalization mechanism to delete the NB when the cluster is being deleted

Actual Behavior

Stale NBs are left in place

Steps to Reproduce the Problem

  1. Create a K8S cluster with the linode-ccm installed on it
  2. Provision a Service of type LoadBalancer
  3. Delete the control plane and nodes of the cluster

Environment Specifications

This happens for KPP clusters but also was reported by externally facing customers who are not using KPP

Additional Notes

I'm not really sure we can address this in the linode-ccm and may need to address it at a platform level but wanted to have this logged and tracked somewhere


For general help or discussion, join the Kubernetes Slack team channel #linode. To sign up, use the Kubernetes Slack inviter.

The Linode Community is a great place to get additional support.

Activity

  1. luthermonson commented on Dec 2, 2023

    @luthermonson
    Contributor

    any thoughts on what we could catch to make this happen? this is happening outside of kube so we can't use the lifecycles in the ccm... my only thought is if the vms are deleted via the linode api we'd have do some reconcile with nodebalancers e.g. if their underlying nodes dont exist any more we delete the nodebalancer. open to suggestions @schinmai-akamai any other ideas ?

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions