<p>I have Gitlab Kubernetes integration in my <code>Project 1</code> and I am able to access the <code>kube-context</code> within that project's pipelines without any issues.</p>
<p>I have another project, <code>Project 2</code> where I want to use the same cluster that I integrated in my <code>Project 1</code>.</p>
<p>This i my agent config file:</p>
<pre><code># .gitlab/agents/my-agent/config.yaml

ci_access:
  projects:
    - id: group/project-2
</code></pre>
<p>When I try to add a Kubernetes cluster in my <code>Project 2</code>, I am expecting to see the cluster name that I set up for <code>Project 1</code> in the dropdown, but I don't see it:</p>
<p><a href="https://i.stack.imgur.com/LYZfr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LYZfr.png" alt="gitlab-agent" /></a></p>

<p>Have you ensured that the agent configuration file <code>config.yaml</code> is present in your <code>project2</code> at the specified directory?</p>
<p>If you have, you should be able to choose the agent from the list and setup Gitlab with it. Having the configuration file in both projects is <a href="https://docs.gitlab.com/ee/user/clusters/agent/install/#create-an-agent-configuration-file" rel="nofollow noreferrer">necessary</a> when you configure multiple projects to use the same k8s cluster.</p>
