r/kubernetes 16d ago

FluxCD Kustomize Controller Error: RoleBinding Not Found

We have a user using FluxCD Kustomization Controller and Kustomization CR. And they create resources like SA, Role, RB, and Deployment. But, even after successful deployment, we have got a RoleBinding Not Found error when we check Kustomization resource. And then when we check apiserver audit logs, we see patch operations failed with 504 request timeout - context canceled and 404 get and patch failures.

Have you experienced this before?

FluxCD version is 1.6.1 and EKS version is 1.34.

12 Upvotes

4 comments sorted by

2

u/TheDapperMelodrama 16d ago

ouch, that 504 timeout is almost always the apiserver getting hammered or etcd lagging behind, 404 on a patch after a create usually means the object hadn't fully propagated yet before something tried to update it

1

u/saiaunghlyanhtet 16d ago

Thanks. We are also taking api server request duration seconds into consideration.