Skip to content
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

Bootstrapping with CRDs broken #562

Closed
zbigniewzolnierowicz opened this issue Dec 7, 2020 · 2 comments
Closed

Bootstrapping with CRDs broken #562

zbigniewzolnierowicz opened this issue Dec 7, 2020 · 2 comments

Comments

@zbigniewzolnierowicz
Copy link

I have some CRD for the Traefik reverse proxy, I wanted them to be bootstraped on cluster creation, but Flux was throwing me the following error:

error: unable to recognize "fe3c25a4-ac24-421f-a1f7-b70506377eae.yaml": no matches for kind "IngressRoute" in version "traefik.containo.us/v1alpha1"

I have deduced that Flux is applying everything within one kubectl apply command (or the internal equivalent of such), as documented in this comment to a kubernetes issue. Is there any workaround possible?

@zbigniewzolnierowicz
Copy link
Author

Also, for reference, here is the repo I was having issues.

@stefanprodan
Copy link
Member

You have two options, disable validation in the main Kustomization or split your controllers from custom resources. I advise against disabling validation, here is an example of how to use dependsOn and install things in order: https://github.com/fluxcd/flux2-multi-tenancy/blob/main/clusters/production/infrastructure.yaml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants