Skip to content
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

Unable to delete security groups because of dangling ENIs #65

Open
imranismail opened this issue Sep 18, 2019 · 5 comments
Open

Unable to delete security groups because of dangling ENIs #65

imranismail opened this issue Sep 18, 2019 · 5 comments

Comments

@imranismail
Copy link

After provisioning ocean cluster and setting up a few pods inside it. Upon destroying resources using terraform I'm always stuck at deleting the worker security groups because of dangling ENIs.

@CarlosDomingues
Copy link

@imranismail you can configure network interfaces to be deleted by using the delete_on_termination attribute in the network_interface block, e.g.:

  network_interface {
    device_index                = 0
    description                 = "<Your Description>."
    delete_on_termination       = true
    associate_public_ip_address = true
  }

Please refer to the docs for further information.

@imranismail
Copy link
Author

@CarlosDomingues That is for elastigroup. For ocean I don't see any option to configure this.

@danielle-297
Copy link

Hi @imranismail, thanks for your comment.
We've been looking into it and tried to reproduce it using the eks_ocean.tf template we offer in our documentation.
On our end, it seems like everything is working properly.
Would you be able to contact Spotinst support and provide them with your template in order for them to look into the issue?

@imranismail
Copy link
Author

@danielle-297 did you try launching a few services inside the cluster? That's when the ENIs get created.

@mateothegreat
Copy link

It's worth noting that when deleting an EKS cluster you must delete your "LoadBalancer" service types first. EKS does not clean this up for you at the time of this writing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants