Configuring your Self Service Agent
Overview
The Rely.io Self-Service Agent is a critical component required to enable self-service action features within Rely.io. Without it, you won't be able to trigger self-service actions. The Agent is fully open-source.
This agent runs on the customer's side, ensuring that Rely.io does not need write access to the customer's platforms. Once deployed, it will periodically check for pending actions triggered via Rely.io's UI or API and execute them.
Obtaining Your Self-Service Agent API Token
You need to generate an API token to ensure the Rely.io Self-Service Agent can properly interact with Rely.io and listen for events. We have several options for getting the token.
Get Token from Plugins Page
Open the Rely.io platform.
Navigate to the Plugins page.
Open the details of the Self-Service Agent plugin.
Click View details and then Generate Self Service Token.
Get Token from the Self-Service Onboarding Page
Open the Rely.io platform.
Navigate to the Self-Service Actions page.
Click the Setup Self-Service Agent button.
On the tab Generate Rely API token, click on the Generate Token.
On the modal dialog, click Generate token.
Finally, the generated token can be copied from the token input textbox to the clipboard
Generating a new token will invalidate all previously generated tokens.
Installation Method 1: Kubernetes cluster using Helm (Recommended)
Prerequisites
A Kubernetes cluster
Helm installed on your local machine
Rely.io Self-Service Agent API Token
kubectl command line app
jq command line
Step 1: Crete a Kubernetes Namespace
First, create a Kubernetes namespace
Step 2: Create a Kubernetes Secret with Your API Token
Create a Kubernetes secret to store your Rely.io API token securely.
Replace YOUR-API-TOKEN
with your actual API token.
Step 3: Install the Rely.io Self-Service Agent Chart
Install the Rely.io Self-Service Agent using the Helm chart.
The previous command will install or upgrade the Self Service Agent install to latest version.
Installation Method 2: Docker
Prerequisites
Docker installed
Rely.io Self-Service Agent API Token
Step 1: Run the Docker Container
Run the Rely.io Self-Service Agent Docker container with your API token.
Replace YOUR-API-TOKEN
with your actual API token.
Managing Secrets and Environment Variables
The Rely.io Self-Service Agent requires tokens to interact with various data sources. The specific tokens to provide will depend on the integrations you want to use in self-service actions. Examples include:
GITHUB_TOKEN
: For GitHub integrationGITLAB_TOKEN
: For GitLab integrationSONARQUBE_TOKEN
: For SonarQube integrationPAGERDUTY_TOKEN
: For PagerDuty integrationGCP_SERVICE_ACCOUNT
: Google Cloud Service Account credentials
Kubernetes (Helm Installation)
To update the Kubernetes secret with additional environment variables, use the following command:
Replace EXAMPLE_ENV_VAR
and ENV_VAR_VALUE_GOES_HERE
with your specific variable name and value.
For setting up all our previous environment variables at once, we could do it like this:
Than re-deploy your agent:
Docker
For the Docker installation, you can pass additional environment variables directly into the docker run
command. Example:
Upgrading the Self-Service Agent
Upgrade to the latest version of the Self-Service Agent; available versions can be checked here
Helm
If a specific version is required, a parameter needs to be added to the previous command just like this:
Docker
Pull the latest Docker image and run it. Feel free to check and specify for specific versions here.
Last updated