Access to the volume is not restricted and is open to all networks, whereas it should be limited to the cluster's IP DHCP range only.
Tanzu Kubernetes Grid 2.5x
Fetch the vspherecsiconfig
from the management cluster context:
kubectl get vspherecsiconfig <workload-cluster-name> -o yaml > <workload-cluster-name>-vspherecsiconfig.yaml
Add the following under netPermissions
:
Apply the changes:
Verify that the changes are applied by checking the secret:
To confirm the changes are reflected in the workload cluster:
verify the below vsphere config secret
kubectl get secret vsphere-config-secret -n vmware-system-csi -o yaml
This process ensures the correct configuration of vspherecsiconfig
and network permissions, with verification steps for both the management and workload clusters.
vsphereCSI.netPermissions
setting can be successfully applied and permissions can be updated in a class-based cluster.