From 3b2dc5be12ee60afa185ee7960c5dc9dde3ecf70 Mon Sep 17 00:00:00 2001 From: Brian Bergeron Date: Fri, 6 Dec 2019 10:18:11 -0800 Subject: [PATCH] Set local-storage as the default storage class --- .../kubeadm/ubuntu-single-node-vm/setup-controller.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/samples/features/azure-arc/deployment/kubeadm/ubuntu-single-node-vm/setup-controller.sh b/samples/features/azure-arc/deployment/kubeadm/ubuntu-single-node-vm/setup-controller.sh index 83e29ee5..ab8d70bd 100644 --- a/samples/features/azure-arc/deployment/kubeadm/ubuntu-single-node-vm/setup-controller.sh +++ b/samples/features/azure-arc/deployment/kubeadm/ubuntu-single-node-vm/setup-controller.sh @@ -239,6 +239,10 @@ kubectl taint nodes ${master_node} node-role.kubernetes.io/master:NoSchedule- # kubectl apply -f https://raw.githubusercontent.com/microsoft/sql-server-samples/master/samples/features/azure-arc/deployment/kubeadm/ubuntu/local-storage-provisioner.yaml +# Set local-storage as the default storage class +# +kubectl patch storageclass local-storage -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}' + # Install the software defined network. # kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml