-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No default storageclass is set with the default install #84
No default storageclass is set with the default install #84
Comments
Hi @woopla, thanks for the feedback! I personally don't think that setting a default storageClass is in the scope of the on-prem installer. It is not granted that the end-user wants that. You can though set the local-path provisioner as the default storageClass when installing it. If you are using plain yaml manifests add the annotattoins to you yaml definition, or with Kustomize, putting something like this in you apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- "https://raw.githubusercontent.com/rancher/local-path-provisioner/v0.0.27/deploy/local-path-storage.yaml"
patches:
- patch: |
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: local-path
annotations:
"storageclass.kubernetes.io/is-default-class": "true" |
I forgot to mention, have you tried using https://docs.kubernetesfury.com/docs/furyctl/how-it-works/how-it-works |
Thanks @ralgozino. I've setup the cluster using Regarding the use of a Don´t get me wrong, I think KFD is great, I'm just trying to get situated :D BTW, I was able to get it to work with Kind by following the Minikube tutorial - I´d like to be able to replicate the production system architecture (that is going to use VMs) but with a Kind "cluster" on a single VM for testing. |
Hey @woopla, sorry for the delay
oh cool! I though you were using the on-prem installer without furyctl. Thanks for the feedback, we should say that in the docs. I'll fix that.
My previous advise was based on thinking that you were following a more manual way, I did not know you were using furyctl (nor the fury-on-vms guide). We'll improve the guide to make the local storage class the default one. You can install
That's great to hear! thank you and keep the feedback coming :) |
Thanks for the feedback @ralgozino ! For the Looking at a |
Yes, you can patch the distribution using kustomize syntax in the I agree that the specs docs needs a lot of improvement. For setting the local path provisioner as the default storage class you can see my linked PR: |
After the Docker cleanup fix in #83 I got a cluster up and running, nice!
Well, almost, because all the services that require storage could not start since they were waiting for PVCs to be filled. This is because there's no default storage class. Fixing it is as simple as running:
kubectl patch storageclass local-path -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}'
Could you please change the flow so it sets the first StorageClass it finds as default?
The text was updated successfully, but these errors were encountered: