Confused about roles of Gitlab k8s agent and Flux for the manifests deployment

Hi there,

I’ve read Tutorial: Set up Flux for GitOps | GitLab and I viewed the 2 youtube videos that explain how to setup flux on gitlab but I’m failing to understand what brings adding the agentk to a kubernetes cluster. The video does not mention the installation of the gitlab kubernetes agent.

I’m also confused because in the past (about 1 year ago), I’ve tested gitlab agent for kubernetes to deploy manifest in a namespace, it was almost doing the same job.

Can someone clarify all what the role of these components ? is gitlab k8s agent still necessary ?