Skip to content
This repository was archived by the owner on Oct 31, 2019. It is now read-only.

Commit 5950117

Browse files
committed
Mark OCI as the default StorageClass.
1 parent b5b9d09 commit 5950117

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

instances/k8smaster/scripts/setup.template.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,9 @@ kubectl apply -f https://raw.githubusercontent.com/oracle/oci-volume-provisioner
204204
kubectl apply -f https://raw.githubusercontent.com/oracle/oci-volume-provisioner/master/manifests/storage-class.yaml
205205
kubectl apply -f https://raw.githubusercontent.com/oracle/oci-volume-provisioner/master/manifests/storage-class-ext3.yaml
206206

207+
## Mark OCI StorageClass as the default
208+
kubectl patch storageclass oci -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}'
209+
207210
rm -f /root/volume-provisioner-secret.yaml
208211

209212
echo "Finished running setup.sh"

0 commit comments

Comments
 (0)