Skip to content

We need to always delete the kind cluster if we create kind cluster with Prow jobs #14

Open

Description

@chizhg

Currently when we run test flows with kind, we run kubetest2 kind --up --down which will also delete the kind cluster after the test flow finishes in the normal way. But if the Prow job is interrupted in the middle, the cluster will not be properly deleted thus will be causing memory leakage, as described in kubernetes-sigs/kind#303 (comment)

We should add a trap command to make sure the cluster can still be cleaned up even when the Prow job is interrupted.

Activity

  1. added a commit that references this issue on Nov 25, 2020
  2. BenTheElder commented on Jan 28, 2021

    @BenTheElder

    you also most likely need to set the prowjob timeout / grace period to something other than the 15s? default. bootstrap.py used to do 15m by default, so prow.k8s.io uses that as the default (it's configurable for a prow instance), otherwise your scripts don't get much time to cleanup.

    unfortunately nested kubernetes brings quite a suite of problems, you probably want to look through #303 for anything else you've missed (e.g. inotify).

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