civo / kube100

NOTE: This repo is no longer being maintained or monitored. If you are facing any issues, you could either create an issue on the other respective repos (if any) or directly reach to us via civo.com
29 stars 2 forks source link

Default cluster provisioned with multiple default storage classes #75

Open chrisk700 opened 3 years ago

chrisk700 commented 3 years ago

In the default state both storage classes are decorated with is-default-class annotation.

~  kubectl get sc -o=custom-columns=NAME:.metadata.name,DEFAULT:".metadata.annotations.storageclass\.kubernetes\.io/is-default-class"
NAME          DEFAULT
local-path    true
civo-volume   true
andyjeffries commented 3 years ago

Thank you, this is a known issue. The team were working on a fix for this last night, and it should be released today.

There's an easy fix for current clusters (if anyone later comes across this):

kubectl patch storageclass local-path -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"false"}}}'

Or specify the storage class in your PVC.