<p>i am newbie for gitlab.
I don't understand how to create a pipeline for deploy an immage in different kubernetes cluster with agents.</p>
<p>for example i have :</p>
<p>dev cluster -&gt; agent 1</p>
<p>test cluster -&gt; agent 2</p>
<p>production cluster -&gt; agent 3</p>
<p>now it's possibile in a single pipeline to deploy in every cluster ? how can i tell which agent to use for deploy in a specific environment?</p>
<p>Thanks in advance</p>

Andrea Maestroni
<p>That will depend on your use case, but on your jobs you can use <code>kubectl</code> to specify the context to where you are deploying.</p>
<p><code>kubectl config set-context $GITLAB_AGENT_URL:$AGENT_NAME</code></p>
<p>where <code>$GITLAB_AGENT_URL</code> is the name of the project where the config of your Kubernetes Agents is stored.</p>
