Skip to content

Commit f982630

Browse files
authored
Merge pull request #696 from ananto-msft/master
Set local-storage as the default storage class
2 parents a1b806a + 0802aac commit f982630

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

samples/features/azure-arc/deployment/kubeadm/ubuntu-single-node-vm/setup-controller.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,10 @@ kubectl taint nodes ${master_node} node-role.kubernetes.io/master:NoSchedule-
239239
#
240240
kubectl apply -f https://raw.githubusercontent.com/microsoft/sql-server-samples/master/samples/features/azure-arc/deployment/kubeadm/ubuntu/local-storage-provisioner.yaml
241241

242+
# Set local-storage as the default storage class
243+
#
244+
kubectl patch storageclass local-storage -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}'
245+
242246
# Install the software defined network.
243247
#
244248
kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml

0 commit comments

Comments
 (0)