# Agent Service Configuration

{% hint style="info" %}
This is an older version of the document. To view the most recent version of the document, click [here](https://docs.opsmx.com/quickstart-guide/agent-configuration/configure-an-agent).
{% endhint %}

Services are configured from the "opsmx-services-agentX" user-supplied configmap.  There should be one key, 'services.yaml', which defines the services this Agent advertises to ISD, and the credentials needed to provide access.<br>

The "name" element is advertised to ISD, and will be the name used for the associated Spinnaker account configuration.  This name will be presented to ISD users.<br>

Renaming an account is not possible, and will require deleting and re-creating the account through the ISD interface.<br>

Only services explicitly marked as "enabled: true" will be advertised to Spinnaker.<br>

Example: <br>

```
apiVersion: v1
kind: ConfigMap
metadata:
  name: opsmx-services-agent1
  namespace: opsmx-agent-agent1
  labels:
    agent.opsmx.com/name: agent1
    agent.opsmx.com/role: agent
data:
  services.yaml: |
    services:
      - name: dev jenkins
        type: jenkins
        enabled: true
        config:
          url: https://dev.jenkins.example.com:8080
          credentials:
            type: basic
            secretName: dev-jenkins-secret
      - name: artifactory-test
        type: artifactory
        enabled: true
        config:
          url: https://artifactory.example.com
          credentials:
            type: bearer
            secretName: artifactory-secret
      - name: kubernetes1
        type: kubernetes
        enabled: true
        namespaces:
          - name: kubernetes1-ns-test
            namespaces:
              - test
          - name: kubernetes-ns-default
            namespaces:
              - default
              - test

```
