Namespace missing Machines stuck in deleting state
search cancel

Namespace missing Machines stuck in deleting state

book

Article ID: 408928

calendar_today

Updated On:

Products

VMware Tanzu Kubernetes Grid Management

Issue/Introduction

There are machines in a deleting state. vSphere machines are not available and they are not in the vCenter inventory. NS is not available.

Environment

2.5.4

Cause

Namespace is missing

Resolution

  1. Create a missing namespace.
    kubectl create ns NameSpace

  2. Edit the machine resource.
    kubectl edit machine -n <namespace> <machine name>

  3. Delete these two lines 
      finalizers:
      - machine.cluster.x-k8s.io

  4. Delete namespace
    kubectl delete ns <namespace>