kubernetes/minikube

Creation of additional storage classes with dynamic volume provisioning: impossible or documentation lacking?

开放

#11,947 创建于 2021年7月9日

 (27 条评论) (2 个反应) (0 位负责人)Go (5,222 个派生)batch import
addon/storage-provisionerhelp wantedkind/featurelifecycle/stalepriority/backlog

仓库指标

星标
 (31,799 个星标)
PR 合并指标
 (平均合并 12天 19小时) (30 天内合并 43 个 PR)

描述

Running minikube version: v1.20.0, commit: c61663e942ec43b20e8e70839dcca52e44cd85ae

There is only one storage class created when starting a minikube:

$ kubectl get sc
NAME                 PROVISIONER                RECLAIMPOLICY   VOLUMEBINDINGMODE   ALLOWVOLUMEEXPANSION   AGE
standard (default)   k8s.io/minikube-hostpath   Delete          Immediate           false                  18h

Dynamic Provisioning in this storage class works fine.

I would like to add more storage classes with dynamic volume provisioning, so that I could test my PersistentVolumeClaim manifests (written for EKS) on Minikube without modifications. These storage classes need not be different physically or programmatically from the standard Minikube sc, but I need to test manifests for other clusters without modifications. Those manifests have different "storageClassName" attributes, like "gp3", "sc1" etc.

If the creation of additional storage classes with dynamic volume provisioning is possible, I cannot find it anywhere if it's documented for Minikube.

贡献者指南