You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/book/src/faq.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -94,7 +94,7 @@ However, note that this problem is fixed and will not occur if you deploy the pr
94
94
95
95
## 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?
96
96
97
-
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)
97
+
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]
98
98
99
99
Therefore, you have a few options to workround this scenario such as:
100
100
@@ -112,12 +112,16 @@ Therefore, you have a few options to workround this scenario such as:
112
112
113
113
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.
114
114
115
-
Add maxDescLen=0 and it will ensure that the crd description size is utmost and hence it will go through it.
115
+
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
116
116
117
+
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]
0 commit comments