microsoft / sql-server-samples

Azure Data SQL Samples - Official Microsoft GitHub Repository containing code samples for SQL Server, Azure SQL, Azure Synapse, and Azure SQL Edge
Other
9.92k stars 8.84k forks source link

Kubernetes storage class #651

Open shaximinion opened 4 years ago

shaximinion commented 4 years ago

Issue: spec.storage.data.className not specified / provided

I followed the guide here:

https://github.com/microsoft/sql-server-samples/tree/master/samples/features/sql-big-data-cluster/deployment/kubeadm/ubuntu

when i go onto azdata to create a new bdc:

azdata bdc create --accept-eula=yes

i get asked a for a couple of values but then get asked for the Kubernetes Storage Class:

spec.storage.data.className

I'm using ubuntu and setup a kubernetes cluster using kubeadm (1 master and 2 workers)

the nodes are up and running fine when I run

sudo kubectl get nodes

Is there a step missing in your guide to setup the storage class? If so, could this be added please?

image

Guillaume-Fourrat commented 4 years ago

Hi Shaximinion, The steps to create the storage class do exist in the deployement sample, it's the ones with setup-volumes-agent.sh (on all nodes) and then local-storage-provisioner.yaml (executed against the K8S cluster as a whole, so once is enough). What's missing is that you simply have to type in "local-storage" twice in the prompts you get during the BDC cluster creation (as local-storage is the class that the two scripts above should have successfull put in place). Let me know if still blocked =)