Commit dca8a4cc authored by Viktor Nagy's avatar Viktor Nagy Committed by Marcia Ramos

Improved the configuration section

parent 26be8f2c
...@@ -100,27 +100,39 @@ To use the KAS: ...@@ -100,27 +100,39 @@ To use the KAS:
### Define a configuration repository ### Define a configuration repository
Next, you need a GitLab repository to contain your Agent configuration. The minimal > [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/259669) in GitLab 13.7, the Agent manifest configuration can be added to multiple directories (or subdirectories) of its repository.
repository layout looks like this:
To configure an Agent, you need:
1. A GitLab repository to hold the configuration file.
1. Install the Agent in a cluster.
After installed, when you update the configuration file, GitLab transmits the
information to the cluster automatically without downtime.
In your repository, add the Agent configuration file under:
```plaintext ```plaintext
.gitlab/agents/<agent-name>/config.yaml .gitlab/agents/<agent-name>/config.yaml
``` ```
Your `config.yaml` file can specify multiple manifest projects in the Your `config.yaml` file specifies all configurations of the Agent, such as:
section `manifest_projects`:
- The manifest projects to synchronize.
- The address of the `hubble-relay` for the Network Security policy integrations.
As an example, a minimal Agent configuration that sets up only the manifest
synchronizations is:
```yaml ```yaml
gitops: gitops:
manifest_projects: manifest_projects:
- id: "path-to/your-manifest-project-number1" - id: "path-to/your-manifest-project-1"
... paths:
- glob: '/**/*.{yaml,yml,json}'
``` ```
GitLab [versions 13.7 and later](https://gitlab.com/gitlab-org/gitlab/-/issues/259669) also All the options for the [Kubernetes Agent configuration repository](repository.md) are documented separately.
supports manifest projects containing
multiple directories (or subdirectories) of YAML files. For more information see our
documentation on the [Kubernetes Agent configuration repository](repository.md).
### Create an Agent record in GitLab ### Create an Agent record in GitLab
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment