Skip to content

Commit

Permalink
Added CRD fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pavangudiwada committed Dec 13, 2024
1 parent 1be98df commit 260f028
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
26 changes: 26 additions & 0 deletions docs/help.rst
Original file line number Diff line number Diff line change
Expand Up @@ -247,3 +247,29 @@ Alert Manager is not working
resources:
requests:
storage: 10Gi
CRD issues
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

.. details:: CustomResourceDefinition.apiextensions.k8s.io "prometheuses.monitoring.coreos.com" is invalid: metadata.annotations: Too long

This is often a CRD issue which can be fixed with :ref:`these instructions <Manual Upgrade>` To verify this, open the ArgoCD error logs and look for more details.

.. image:: /images/Argocd_crd_issue_fix.png
:width: 400
:align: center

.. details:: one or more objects failed to apply... CustomResourceDefinition.apiextensions.k8s.io "prometheusagents.monitoring.coreos.com" is invalid

This indicates potential discrepancies between the version of Prometheus you are trying to use and the version of the CRDs in your cluster.

Follow this guide for :ref:`upgrading CRDs from an older version <Manual Upgrade>`.

.. details:: CustomResourceDefinition.apiextensions.k8s.io "prometheuses.monitoring.coreos.com" is invalid


This indicates potential discrepancies between the version of Prometheus you are trying to use and the version of the CRDs in your cluster.

Follow this guide for :ref:`upgrading CRDs from an older version <Manual Upgrade>`.

Binary file added docs/images/Argocd_crd_issue_fix.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion docs/setup-robusta/gitops/argocd.rst
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,9 @@ Finally, run ``robusta logs`` from your cli and make sure there is no error.

On some Robusta versions, the sync might fail with ``CustomResourceDefinition.apiextensions.k8s.io “prometheuses.monitoring.coreos.com” is invalid: metadata.annotations: Too long: must have at most 262144 bytes``.

To solve it, use the workaround proposed `here <https://github.com/prometheus-community/helm-charts/issues/1500#issuecomment-1132907207>`_
To solve it, use the workaround proposed :ref:`here <CRD Issues>`.


Configure ArgoCD Declaratively
--------------------------------

Expand Down

0 comments on commit 260f028

Please sign in to comment.