PersistentVolumeClaim(PVC)을 사용하여 스토리지를 요청하는 경우 StorageClass를 지정할 수 있습니다. StorageClass를 지정하지 않은 경우 클러스터에 StorageClass가 구성되어 있으면 기본 StorageClass가 사용됩니다.
Google Distributed Cloud는 기본 StorageClass를 구성하지 않습니다. 예를 들어 StorageClass를 지정하지 않는 PVC를 만든다고 가정해 보겠습니다. 볼륨 컨트롤러는 기본 StorageClass에 따라 클레임을 처리합니다.
기본 StorageClass 변경
클러스터 관리자는 기본 스토리지 클래스를 변경할 수 있습니다.
그러면 StorageClass를 지정하지 않은 모든 스토리지 요청이 선택한 StorageClass에 따라 처리됩니다. 이 섹션에서는 기본값을 변경하는 단계를 설명합니다.
새 스토리지 시스템 배포
새 스토리지 시스템과 Kubernetes 클러스터와 통합하기 위한 모든 소프트웨어 구성요소를 배포합니다. 예를 들어 클러스터에 CSI 드라이버를 설치해야 할 수 있습니다.
기존 기본 StorageClass를 비기본으로 표시
클러스터가 이미 있는 경우 기존 기본 StorageClass용 클러스터를 검색하고 비기본으로 표시합니다. 자세한 내용은 기본 StorageClass 변경을 참조하세요.
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["이해하기 어려움","hardToUnderstand","thumb-down"],["잘못된 정보 또는 샘플 코드","incorrectInformationOrSampleCode","thumb-down"],["필요한 정보/샘플이 없음","missingTheInformationSamplesINeed","thumb-down"],["번역 문제","translationIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-09-01(UTC)"],[],[],null,["This page shows how to set the default StorageClass for an\nGoogle Distributed Cloud cluster.\n\nOverview\n\nGoogle Distributed Cloud can integrate with block or file storage by using any of\nthe following mechanisms:\n\n- [Kubernetes in-tree volume plugins](https://kubernetes.io/docs/concepts/storage/volumes/#types-of-volumes)\n- [Container Storage Interface (CSI)](/kubernetes-engine/distributed-cloud/bare-metal/docs/installing/install-csi-driver)\n\nDefault StorageClass\n\nWhen you request storage with a\n[PersistentVolumeClaim](https://kubernetes.io/docs/concepts/storage/persistent-volumes/)\n(PVC), you can specify a StorageClass. If you do not specify a StorageClass, the\ndefault StorageClass is used if one is configured in the cluster.\nGoogle Distributed Cloud does not configure a default StorageClass. For example,\nsuppose you create a PVC that does not specify a StorageClass. The volume\ncontroller will fulfill the claim according to the default StorageClass.\n\nChange the default StorageClass\n\nAs a cluster administrator, you might want to change the default storage class.\nThen all requests for storage that do not specify a StorageClass will be\nfulfilled according to the StorageClass of your choice. This section gives the\nsteps for changing the default.\n\nDeploy a new storage system\n\nDeploy a new storage system and any software components for integrating the new\nstorage mechanism with a Kubernetes cluster. For example, you might need to\n[install a CSI driver](/kubernetes-engine/distributed-cloud/bare-metal/docs/installing/install-csi-driver)\nin the cluster.\n\nMark any existing default StorageClass as non-default\n\nSearch your cluster for any existing default StorageClass if one already exists\nand mark it as non-default. For details, see\n[Change the default StorageClass](https://kubernetes.io/docs/tasks/administer-cluster/change-default-storage-class/).\n\nCreate a new StorageClass\n\n[Create a manifest for a new StorageClass](https://kubernetes.io/docs/concepts/storage/storage-classes/).\nInclude the `storageclass.kubernetes.io/is-default-class: \"true\"` annotation.\nFor example: \n\n```\napiVersion: storage.k8s.io/v1\nkind: StorageClass\nmetadata:\n annotations:\n storageclass.kubernetes.io/is-default-class: \"true\"\n ...\n name: my-storage-class\n ...\nparameters:\n ...\nprovisioner: [MY_PROVISIONER]\n...\n```\n\nSave your manifest as a YAML file, and create the new StorageClass: \n\n```\nkubectl --kubeconfig [CLUSTER_KUBECONFIG] apply -f [MANIFEST_FILE]\n```\n\nwhere \u003cvar translate=\"no\"\u003e[MANIFEST_FILE]\u003c/var\u003e is the path to your new StorageClass manifest\nfile.\n\nWhat's next\n\n- [Read about Google Distributed Cloud's storage concepts](/kubernetes-engine/distributed-cloud/bare-metal/docs/installing/storage)\n\n- [Install a CSI driver](/kubernetes-engine/distributed-cloud/bare-metal/docs/installing/install-csi-driver)"]]