When installing some CRDs into the Kubernetes cluster using kubectl apply
, an error occurs - Annotations too long
.
The Annotations too long
error in Kubernetes typically occurs when you are trying to create or update a Kubernetes resource and the combined length of the annotations for that resource exceeds the maximum allowed limit.
Because of the Annotations too long
error, ArgoCD isn't able to install and sync some CRDs.
This error doesn't occur if you are creating the CRD for the first time using kubectl create
. Currently I manually install those CRDs using the kubectl create
command. But still, ArgoCD gets this error trying to sync those CRDs, thus leaving the related ArgoCD application in an always unsynced state.
Approach
https://www.arthurkoziel.com/fixing-argocd-crd-too-long-error/.