acs-engine icon indicating copy to clipboard operation
acs-engine copied to clipboard

No unmanaged Azure storage classes

Open j03wang opened this issue 8 years ago • 6 comments

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 avatar Mar 22 '18 03:03 j03wang

@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

andyzhangx avatar Mar 23 '18 11:03 andyzhangx

But it doesn't distinguish between standard and premium?

j03wang avatar Mar 23 '18 13:03 j03wang

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.

andyzhangx avatar Mar 23 '18 13:03 andyzhangx

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 avatar Mar 23 '18 13:03 j03wang

@j03wang design is like following:

  1. if current agent pool is unmanaged VM disk based, then acs-engine will use kubernetesmasteraddons-unmanaged-azure-storage-classes.yaml to create all built-in classes, default is unmanaged
  2. if current agent pool is managed VM disk based, then acs-enginewill use kubernetesmasteraddons-managed-azure-storage-classes.yaml to create all built-in classes, default is managed so maybe add a premium unmanaged into kubernetesmasteraddons-unmanaged-azure-storage-classes.yaml would be better for use, I will send a PR later.

andyzhangx avatar Mar 23 '18 14:03 andyzhangx

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.

j03wang avatar Mar 23 '18 17:03 j03wang