Uninstallation Guide
This guide provides instructions for completely removing the Scality CSI Driver for S3 and all associated resources from a Kubernetes cluster.
Before You Begin
Data Persistence
- Uninstalling the CSI driver does not delete data in S3 buckets
- Existing PersistentVolumes with
Retain
policy will preserve bucket data - Kubernetes pod applications using S3 buckets as volumes will still be able to access their data after the driver is uninstalled deleted as the driver is responsible for mounting S3 when the pod starts.
- If the driver is re-installed, pods which lost access to S3 will be able to access their data again.
Access to Data
If the driver is uninstalled while applications are still using S3 volumes, those applications will lose access to their to S3 if the kubernetes pods are deleted. This is due to orphaned FUSE processes.
Uninstallation Steps
Step 1: Remove Workloads Using S3 Volumes
First, identify and delete all pods using S3 volumes:
1 2 3 4 |
|
Step 2: Remove PVCs and PVs
Delete all PersistentVolumeClaims using the S3 CSI driver:
1 2 3 4 |
|
Delete PersistentVolumes:
1 2 3 4 |
|
Step 3: Uninstall the S3 CSI Driver Helm Release
Detect the namespace where the driver is installed and export it as an environment variable:
1 2 |
|
Get the secret name from the Helm release:
1 2 |
|
Uninstall the release:
1 |
|
Delete the S3 credentials secret:
1 |
|
Step 4: Remove Namespace (Optional)
If a dedicated namespace was created and is no longer needed:
1 2 3 4 5 |
|
Step 5: Check Complete Removal
Ensure all CSI driver components are removed:
1 2 3 4 5 6 7 8 9 10 11 12 |
|