-
Notifications
You must be signed in to change notification settings - Fork 612
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
FluxCD fails to create configmaps greater than 262144 characters #459
Comments
Duplicate of: fluxcd/kustomize-controller#122 |
Yesterday i've run in this again (with flux v0.12.3), trying to use kustomize configMapGenerator like this:
The nodeexporter dashboard can be found here: https://grafana.com/grafana/dashboards/1860 The newly introduced force flag (fluxcd/kustomize-controller#271) did not help, as i'm not trying to change an immutable field. So imho marking this ticket as a duplicate is not entirely correct. Kubectl apply fails, also with force:
Imho the only way to get this work is to be able to use something like the command below for initial creation and updates of the resource:
Idealy i'd like to manage all resources with fluxcd. |
I don't think etcd is the right place to store such large objects, place them in a container image and copy them to Grafana storage using an init container. |
Etcd's limit is 1 megabyte for applied resources but the annotation limit blocks this already a lot earlier. From the k8s documentation (https://kubernetes.io/docs/concepts/configuration/configmap/#motivation): Therefore it would be nice to be able to use the actual etcd / configmap limit. I thought about the init container workaround to but it still feels a bit bad to leave the gitops pattern here. |
Fore reference: #1382 |
@stefanprodan CRD also often fall into the category of big objects. |
I use flux2 0.2.2.
I try to add a ConfigMap with a Grafana dashboard, but get the following error:
This is not rely a fluxcd problem as "kubectl apply" also fails to create the configmap:
What works is to add the configmap via "kubectl create" and updating it with "kubectl replace"
So i guess it could work if fluxcd would support some annotation to choose the method for creating the file via "create" / "replace".
Would adding something like this work or did i miss any other available workaround?
For reference: fluxcd/flux#1962
The text was updated successfully, but these errors were encountered: