From e87bb9aa5eda493dde825308ab65d28324f0dbcf Mon Sep 17 00:00:00 2001 From: Sajiyah-Salat Date: Tue, 22 Aug 2023 08:12:19 +0530 Subject: [PATCH] suggestions implement --- docs/book/src/faq.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/book/src/faq.md b/docs/book/src/faq.md index 6a778068a11..da52116f9fd 100644 --- a/docs/book/src/faq.md +++ b/docs/book/src/faq.md @@ -94,7 +94,7 @@ However, note that this problem is fixed and will not occur if you deploy the pr ## The error `Too long: must have at most 262144 bytes` is faced when I run `make install` to apply the CRD manifests . How to solve it? Why this error is faced? -The Kubernetes API has a size limit. Then, when the apply is used the API will add the annotation last-applied-configuration with all previous configuration which is exceeding this amount. [More info](https://kubernetes.io/docs/tasks/manage-kubernetes-objects/declarative-config/#how-to-create-objects) +The Kubernetes API has a size limit. Then, when the apply is used the API will add the annotation last-applied-configuration with all previous configuration which is exceeding this amount. [More info][k8s-obj-creation] Therefore, you have a few options to workround this scenario such as: @@ -112,12 +112,16 @@ Therefore, you have a few options to workround this scenario such as: Instead of Kubectl create command use Kubectl apply and it will work because kubectl create will send the request at once and it will fail while kubect apply send the request in small chunks so the desc len will be divided. -Add maxDescLen=0 and it will ensure that the crd description size is utmost and hence it will go through it. +By using the maxDescLen=0 [controller-gen][cont-gen] will generate the CRD without description which will consequently reduce its size which might sort out the issue +Permanent solution is to work on server-side. but it is not yet supported by controller-gen. Take a look at [this][controller-tool-pr] +[k8s-obj-creation]: https://kubernetes.io/docs/tasks/manage-kubernetes-objects/declarative-config/#how-to-create-objects [gvk]: ./cronjob-tutorial/gvks.md [project-file-def]: ./reference/project-config.md [klog]: https://github.com/kubernetes/klog [zap]: https://github.com/uber-go/zap [permission-issue]: https://github.com/kubernetes/kubernetes/issues/82573 [permission-PR]: https://github.com/kubernetes/kubernetes/pull/89193 +[cont-gen]: ./reference/controller-gen.html +[controller-tool-pr]: https://github.com/kubernetes-sigs/controller-tools/pull/536 \ No newline at end of file