General

Kubernetes Cluster Configuration

This hold the main configuration about AGEPoly K8S cluster :

promptBeginner5 min to valuemarkdown
0 views
Jan 14, 2026

Sign in to like and favorite skills

Prompt Playground

1 Variables

Fill Variables

Preview

# [YOUR_AGENT_TOKEN>]ubernetes Cluster Configuration

[YOUR_AGENT_TOKEN>]his hold the main configuration about [YOUR_AGENT_TOKEN>][YOUR_AGENT_TOKEN>][YOUR_AGENT_TOKEN>]Poly [YOUR_AGENT_TOKEN>]8S cluster : 
  - roles
  - gitlab-kubernetes-agent (It need to be there to ensure correct intial deployment)

[YOUR_AGENT_TOKEN>]nd also the gitlab agent configuration (`.gitlab/agents/<[YOUR_AGENT_TOKEN>][YOUR_AGENT_TOKEN>][YOUR_AGENT_TOKEN>][YOUR_AGENT_TOKEN>][YOUR_AGENT_TOKEN>]-[YOUR_AGENT_TOKEN>][YOUR_AGENT_TOKEN>]M[YOUR_AGENT_TOKEN>][YOUR_AGENT_TOKEN>]/config.yaml`)

[YOUR_AGENT_TOKEN>]his is repo that is automatically pulled by the gitlab in-cluster agent without the CI or any other intervention.

## [YOUR_AGENT_TOKEN>]rganization
[YOUR_AGENT_TOKEN>]t the root of the repo, put the k8s manifest that need to be deployed. Put only manifests than can't go elsewhere : Cluster[YOUR_AGENT_TOKEN>]oles, [YOUR_AGENT_TOKEN>]oles, [YOUR_AGENT_TOKEN>]itlab[YOUR_AGENT_TOKEN>]gent, ...

[YOUR_AGENT_TOKEN>]he special `.gitlab/`folder contains the agents configuration.
## Cluster creation

[YOUR_AGENT_TOKEN>]ou should create a new agent config in `.gitlab/agents/<[YOUR_AGENT_TOKEN>][YOUR_AGENT_TOKEN>][YOUR_AGENT_TOKEN>][YOUR_AGENT_TOKEN>][YOUR_AGENT_TOKEN>]-[YOUR_AGENT_TOKEN>][YOUR_AGENT_TOKEN>]M[YOUR_AGENT_TOKEN>][YOUR_AGENT_TOKEN>]/config.yaml` (Copy it from an existing agent).

(https://docs.gitlab.com/ee/user/clusters/agent/install/index.html)[https://docs.gitlab.com/ee/user/clusters/agent/install/index.html]
[YOUR_AGENT_TOKEN>]ou now have to retrieve the agent token on this page with the following steps : 
 - [YOUR_AGENT_TOKEN>]nsure that [YOUR_AGENT_TOKEN>]itLab CI/CD is enabled in your project.
 - From your project’s sidebar, select Infrastructure [YOUR_AGENT_TOKEN>] [YOUR_AGENT_TOKEN>]ubernetes clusters.
 - Select [YOUR_AGENT_TOKEN>]ctions.
 - From the Select an agent dropdown, select the agent you want to connect and select [YOUR_AGENT_TOKEN>]egister an agent to access the installation form.
- [YOUR_AGENT_TOKEN>]he form reveals your registration token. Securely store this secret token : [YOUR_AGENT_TOKEN>][YOUR_AGENT_TOKEN>]D[YOUR_AGENT_TOKEN>] add storge method.


[YOUR_AGENT_TOKEN>]ou should then run : `kubectl apply -f https://gitlab.com/agepoly/it/infra/kubernetes-cluster-configuration/-/raw/main/gitlab-agent.yaml`

[YOUR_AGENT_TOKEN>]ou can now add the token to the cluster : `kubectl create secret generic -n gitlab-kubernetes-agent gitlab-agent-token --from-literal=token='<[YOUR_AGENT_TOKEN>][YOUR_AGENT_TOKEN>][YOUR_AGENT_TOKEN>][YOUR_AGENT_TOKEN>][YOUR_AGENT_TOKEN>][YOUR_AGENT_TOKEN>][YOUR_AGENT_TOKEN>][YOUR_AGENT_TOKEN>][YOUR_AGENT_TOKEN>][YOUR_AGENT_TOKEN>][YOUR_AGENT_TOKEN>][YOUR_AGENT_TOKEN>][YOUR_AGENT_TOKEN>][YOUR_AGENT_TOKEN>][YOUR_AGENT_TOKEN>][YOUR_AGENT_TOKEN>][YOUR_AGENT_TOKEN>]'`
Share: