Il prodotto descritto in questa documentazione, Anthos Clusters on AWS (generazione precedente), è ora in modalità di manutenzione. Tutte le nuove installazioni devono utilizzare l'attuale prodotto di generazione, Cluster Anthos on AWS.
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Questo argomento spiega come installare un driver di archiviazione Container Storage Interface (CSI) sui tuoi cluster.
Panoramica
Per impostazione predefinita, GKE su AWS esegue il provisioning dei volumi EBS AWS utilizzando l'StorageClass predefinito.
Se i tuoi carichi di lavoro devono utilizzare un altro tipo di volume di archiviazione, puoi installare un
driver CSI compatibile per fornirne l'accesso.
Container Storage Interface (CSI)
è un'API open standard che consente ai carichi di lavoro Kubernetes di accedere a sistemi di archiviazione conformi. CSI consente inoltre di utilizzare funzionalità di archiviazione moderne come il ridimensionamento e gli snapshot.
I fornitori di soluzioni di archiviazione sono responsabili di fornire le istruzioni di installazione per i propri driver CSI. Consulta l'elenco dei
driver CSI
nella documentazione di CSI.
Segui le istruzioni di installazione del driver CSI, quindi procedi con i passaggi successivi di questa pagina.
Verificare l'installazione del driver
Dopo aver installato un driver CSI, puoi verificare l'installazione eseguendo
i seguenti comandi.
Considerazioni per StorageClass supportato da un driver CSI
Quando crei una classe di archiviazione, tieni presente quanto segue:
Consulta la documentazione del driver CSI per i parametri specifici del driver da fornire alla classe di archiviazione, incluso il nome del provisioning.
Devi assegnare un nome a StorageClass in base alle sue proprietà (ad esempio fast o
highly-replicated), anziché al nome del driver o dell'appliance specifico alla base. Quando assegni un nome a un StorageClass in base alle sue proprietà, puoi creare StorageClass con lo stesso nome in cluster e ambienti diversi. Poi configura i carichi di lavoro in modo che utilizzino lo stesso StorageClass.
Passaggi successivi
Crea una StorageClass che fa riferimento al driver CSI.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-09-04 UTC."],[],[],null,["# Install storage drivers\n\nThis topic explains how to install a Container Storage Interface (CSI) storage\ndriver on your clusters.\n\nOverview\n--------\n\nBy default, GKE on AWS provisions AWS\n[EBS volumes](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-volume-types.html)\nusing the default [StorageClass](/kubernetes-engine/multi-cloud/docs/aws/previous-generation/concepts/storage).\nIf your workloads need use another type of storage volume, you can install a\ncompatible CSI driver to provide access to it.\n\nThe `Container Storage Interface` ([CSI](https://github.com/container-storage-interface/spec/blob/master/spec.md))\nis an open standard API that gives Kubernetes workloads access to compliant\nstorage systems. CSI also enables the use of modern storage features such as\nresizing and snapshots.\n\nAfter installing a CSI driver, you need to create a Kubernetes\n[StorageClass](https://kubernetes.io/docs/concepts/storage/storage-classes/).\nYou set the CSI driver as the provisioner for the StorageClass. Then you can\n[set the StorageClass as default](/kubernetes-engine/multi-cloud/docs/aws/previous-generation/how-to/storage-class#set_default),\nor configure your workloads to use the StorageClass.\nFor an example of how to create a StatefulSet with a custom StorageClass,\nsee [Using StorageClasses with your workloads](/kubernetes-engine/multi-cloud/docs/aws/previous-generation/how-to/storage-class#example_statefulset).\n\nInstall a vendor's CSI driver\n-----------------------------\n\nStorage vendors are responsible for providing installation instructions for\ntheir CSI drivers. See the list of\n[CSI drivers](https://kubernetes-csi.github.io/docs/drivers.html)\nin the CSI documentation.\n\nFollow the installation instructions for your CSI driver, and then continue with\nthe next steps on this page.\n| **Important:** Google does not provide support or instructions for third-party drivers. Contact your storage vendor for support.\n\nVerify your driver installation\n-------------------------------\n\nAfter you install a CSI driver, you can verify the installation by running\nthe following commands. \n\n kubectl get csinodes \\\n -o jsonpath='{range .items[*]} {.metadata.name}{\": \"} {range .spec.drivers[*]} {.name}{\"\\n\"} {end}{end}'\n\nHow to use a CSI driver\n-----------------------\n\nTo use a CSI driver:\n\n1. Create a custom [StorageClass](/kubernetes-engine/multi-cloud/docs/aws/previous-generation/how-to/storage-class#custom)\n that refers to the driver in its `provisioner` field.\n\n2. To provision storage, you can either:\n\n - Reference the StorageClass in a [StatefulSet](https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/)'s `volumeClaimTemplates` specification.\n - [Set it as the cluster's default StorageClass](/kubernetes-engine/multi-cloud/docs/aws/previous-generation/how-to/storage-class#set_default).\n\n### Considerations for StorageClass backed by a CSI driver\n\nWhen you create a StorageClass, consider the following:\n\n- Check your CSI driver documentation for\n [driver-specific parameters](https://kubernetes.io/docs/concepts/storage/storage-classes/#the-storageclass-resource)\n that you provide to your StorageClass, including the provisioner name.\n\n- You should name the StorageClass after its properties (such as `fast` or\n `highly-replicated`), rather than after the name of the specific driver or\n appliance behind it. When you name a StorageClass after its properties, you can\n create StorageClasses with the same name in different clusters and\n environments. Then configure your workloads to use the same StorageClass.\n\nWhat's next\n-----------\n\n- Create a [StorageClass](/kubernetes-engine/multi-cloud/docs/aws/previous-generation/how-to/storage-class#custom) which references the CSI driver."]]