No unmanaged Azure storage classes
Is this a request for help?: No
Is this an ISSUE or FEATURE REQUEST? (choose one): ISSUE
What version of acs-engine?: 0.14.2 (and probably versions prior)
Orchestrator and version (e.g. Kubernetes, DC/OS, Swarm)
Kubernetes 1.9.5
What happened: Unmanaged Azure storage classes look like they're a copy-paste of the managed storage classes.
What you expected to happen: unmanaged-standard and unmanaged-premium to be provisioned when creating the cluster.
How to reproduce it (as minimally and precisely as possible): Deploy the cluster.
Anything else we need to know:
@j03wang if kind field is not specified, it's unmanaged azure disk storage class, also called blob based disk
apiVersion: storage.k8s.io/v1beta1
kind: StorageClass
metadata:
name: default
annotations:
storageclass.beta.kubernetes.io/is-default-class: "true"
labels:
kubernetes.io/cluster-service: "true"
provisioner: kubernetes.io/azure-disk
parameters:
cachingmode: None
But it doesn't distinguish between standard and premium?
The above default storage class is using Standard_LRS by default, if you want to use Premium_LRS, you should create a new storage class.
Given that the default VM disk type is unmanaged, I feel like it's a bit confusing to only include the managed storage classes (standard and premium) without any indicator of how to use premium unmanaged. Further, the file I linked to must be either incorrectly named (it has unmanaged in the name) or is not needed.
@j03wang design is like following:
- if current agent pool is unmanaged VM disk based, then acs-engine will use
kubernetesmasteraddons-unmanaged-azure-storage-classes.yamlto create all built-in classes, default is unmanaged - if current agent pool is managed VM disk based, then acs-enginewill use
kubernetesmasteraddons-managed-azure-storage-classes.yamlto create all built-in classes, default is managed so maybe add a premium unmanaged intokubernetesmasteraddons-unmanaged-azure-storage-classes.yamlwould be better for use, I will send a PR later.
But if the agent pool is unmanaged VM disk based, why are the managed-standard and managed-premium storage classes even created (as they are in kubernetesmasteraddons-unmanaged-azure-storage-classes.yaml), seeing as neither can be used with the unmanaged VMs.