Repeating Kustomization configured alerts every five minutes #4953
-
Recently after upgrading our RabbitMQ Operator and cluster we have been getting repeating alerts about the cluster getting configured every five minutes. This is similar to this issue. In this thread it is mentioned that this can happen if two Kustomizations are fighting over the same resource and to check the flux tree. We have looked at the tree and it looks clean, no resource appears in two different kustomizations. Also, this message did not repeat with our kustomization setup before upgrading versions of the operator and cluster(went from Operator version 1.7 to 2.9 and RMQ version 3.8 to 3.13). Our repo structure is:
Where the Operator Kustomization has the namespace, CustomReourceDefinition for the RMQ cluster, service account, Role and RoleBinding, ClusterRole and ClusterRoleBinding, and Deployment. The cluster kustomiztion has the certs and the rabbitmq CustomResource. Any help or thoughts would be greatly appreciated, thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The alert body should tell which resource is "configured" - this can happen if there is a conflict between the YAML in the git repo and the spec body that the operator applies to itself. Usually operators do not write back to their own resources in the You should be able to tell by looking at the resource filtered through You can use You can probably use the |
Beta Was this translation helpful? Give feedback.
The alert body should tell which resource is "configured" - this can happen if there is a conflict between the YAML in the git repo and the spec body that the operator applies to itself. Usually operators do not write back to their own resources in the
spec
but only write to thestatus
- but this is not a hard and fast rule.You should be able to tell by looking at the resource filtered through
kubectl neat
(a krew plugin) what differs, if the spec is rewritten by the operator. If you can post more details about how this happens, we can advise you how best to proceed, but in brief: the default mode of Flux's kustomization apply is to wipe out any diff between the resource spec in git and …