@@ -223,7 +223,31 @@ the Agent in subsequent steps. You can create an Agent record either:
[Getting started with the GraphQL API page](../../../api/graphql/getting_started.md),
or the [GraphQL Explorer](https://gitlab.com/-/graphql-explorer).
### Create the Kubernetes secret
### Install the Agent into the cluster
Next, install the in-cluster component of the Agent.
#### One-liner installation
Replace the value of `agent-token` below with the token received from the previous step. Also, replace `kas-address` with the configured access of the Kubernetes Agent Server:
To find out the various options the above Docker container supports, run:
```shell
docker run --rm-it registry.gitlab.com/gitlab-org/cluster-integration/gitlab-agent/cli:latest generate --help
```
#### Advanced installation
For more advanced configurations, we recommend to use [the `kpt` based installation method](https://gitlab.com/gitlab-org/cluster-integration/gitlab-agent/-/tree/master/build/deployment/gitlab-agent).
Otherwise, you can follow below for fully manual, detailed installation steps.
##### Create the Kubernetes secret
After generating the token, you must apply it to the Kubernetes cluster.
...
...
@@ -239,9 +263,7 @@ After generating the token, you must apply it to the Kubernetes cluster.