Instructions on how to run the xAgent in Kubernetes.
![](https://github.com/xmatters/xMatters-Labs/raw/master/media/disclaimer.png)
- /files - Files for creating and deploying the xAgent container.
- Run
docker build -t <CONTAINER_REGISTRY_LOCATION>:latest .
in /files to create a docker image - Run
docker push <CONTAINER_REGISTRY_LOCATION>
to push the container up to the container registry
- Modify the /files/kube/xagent.deploy.yaml file
- On line 20, insert the image location. This is the container registry location.
- On line 23, change the xmatters url for your instance.
- On line 35, change the friendly name value. This is what your agent's name will be in xMatters.
- Modify the /files/kube/xagent.secrets.yaml file
- Find your API Key and Secret in xMatters. These values can be found in the xMatters installation instructions
Workflows > Agents
in your xMatters instance. - Base64 decode these values. A simple way to do this is to run:
echo -n "VALUE" | base64 -d
in bash on linuxecho -n "VALUE" | base64 -D
on macOS
- Put those values in the /files/kube/xagent.secrets.yaml file.
- Find your API Key and Secret in xMatters. These values can be found in the xMatters installation instructions
- Modify the xmatters service account file
- The /files/role.yaml file contains a sample list of permissions. Change these as needed for which permissions you need the xAgent to have.
- run
kubectl apply -f files/role.yaml
to create the xmatters service account. - run
kubectl create -f files/kube/xagent.secrets.yaml
to put the secrets into Kubernetes. - run
kubectl create -f files/kube/xagent.deploy.yaml
to create the deployment.