Skip to content

One-liner for agent manifest generation

Related to gitlab-org/gitlab#294411 (closed)

Usage Examples

$ docker run --rm -it registry.gitlab.com/gitlab-org/cluster-integration/gitlab-agent/cli:latest
Program aborted: subcommand not specified
Usage:
  agent-cli [command]

Available Commands:
  generate                  Prints the YAML manifests based on specified configuration
$ docker run --rm -it registry.gitlab.com/gitlab-org/cluster-integration/gitlab-agent/cli:latest generate -h
Usage of /app/cmd/cli/cli_linux:
      --agent-token string     Access token registered for agent
      --agent-version string   Version of the agentk image to use (default "v0.0.0")
      --kas-address string     GitLab Kubernetes Agent Server address
      --namespace string       Kubernetes namespace to create resources in (default "gitlab-agent")
      --no-rbac                Do not include corresponding Roles and RoleBindings for the agent service account
      --version                Print version and exit
$ docker run --rm -it registry.gitlab.com/gitlab-org/cluster-integration/gitlab-agent/cli:latest generate \
  --agent-token=foo \
  --kas-address=grpc://foo.bar \
  --no-rbac
Edited by Marshall Cottrell

Merge request reports

Loading