Skip to content

Commit

Permalink
Merge branch 'master' into holmes-docs-enable-custom-tools
Browse files Browse the repository at this point in the history
  • Loading branch information
itisallgood authored Dec 16, 2024
2 parents 4bf0e6d + 727ccad commit 7aa8669
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 2 deletions.
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 by enabling server-side apply option as shown below. Check out `this blog <https://blog.ediri.io/kube-prometheus-stack-and-argocd-25-server-side-apply-to-the-rescue>`_ to learn more.

.. 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 `here <https://blog.ediri.io/kube-prometheus-stack-and-argocd-25-server-side-apply-to-the-rescue>`_.


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

Expand Down
2 changes: 1 addition & 1 deletion docs/setup-robusta/upgrade.rst
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ Manual upgrade instructions
kubectl replace -f https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/v0.70.0/example/prometheus-operator-crd/monitoring.coreos.com_servicemonitors.yaml
kubectl replace -f https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/v0.70.0/example/prometheus-operator-crd/monitoring.coreos.com_thanosrulers.yaml
3. If you're upgrading from Robusta v0.10.27 or below and using thanos please check if you need to adapt your config according to the `kube-prometheus-stack upgrade docs <https://github.com/prometheus-community/helm-charts/blob/main/charts/kube-prometheus-stack/README.md#from-51x-to-52x>`.
3. If you're upgrading from Robusta v0.10.27 or below and using thanos please check if you need to adapt your config according to the `kube-prometheus-stack upgrade docs <https://github.com/prometheus-community/helm-charts/blob/main/charts/kube-prometheus-stack/README.md#from-51x-to-52x>`_.

4. Update Robusta with Helm. If you've lost ``generated_values.yaml``, you can :ref:`extract it from the cluster.<where-is-generated-values>`

Expand Down

0 comments on commit 7aa8669

Please sign in to comment.