Missing StorageClass on TKGS guest cluster after adding new storage policy to Namespace
search cancel

Missing StorageClass on TKGS guest cluster after adding new storage policy to Namespace

book

Article ID: 376853

calendar_today

Updated On:

Products

VMware vSphere with Tanzu

Issue/Introduction

After adding new storage policy to a Namespace, you can see the equivalent StorageClass on your  Supervisor VM. However, it does not show up in the TKGS guest cluster when you run the command

kubectl get storageclasses -A

 

Environment

8.0U3

Cause

 TKGS guest cluster yaml contained the following:

    storage:
      classes:
      - <storage class>
      defaultClass: <original storage class>

This was blocking the new storage classes being added to the TKGS guest cluster.

Resolution

1. Edit the TKGS guest cluster and remove the classes list. Then save and exit

k edit  tkc -n <namespace of tkgs-cluster> <tkgs-cluster-name> -o yaml

CHANGE 
    storage:
      classes:
      - <storage class>
      defaultClass: <default storageclass>

TO
    storage:
      defaultClass: <default storage class>

 

2. Confirm new storageclasses show correctly. On the TKGS guest cluster, run the following to list them

kubectl get storageclasses -A