Skip to content

Commit

Permalink
Update the default storageclass
Browse files Browse the repository at this point in the history
  • Loading branch information
shlokc9 committed Jan 28, 2022
1 parent c3dc9a0 commit 012e72c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build/local_kubernetes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,10 @@ install_csi_hostpath_driver() {
cd csi-driver-host-path
./deploy/kubernetes-1.21/deploy.sh

# Create StorageClass
# Create StorageClass and make it default
kubectl apply -f ./examples/csi-storageclass.yaml
kubectl patch storageclass standard -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"false"}}}'
kubectl patch storageclass csi-hostpath-sc -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}'
}

stop_localkube() {
Expand Down

0 comments on commit 012e72c

Please sign in to comment.