Agent Service Configuration
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.
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. Renaming an account is not possible, and will require deleting and re-creating the account through the ISD interface.
Only services explicitly marked as "enabled: true" will be advertised to Spinnaker.
Example:
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
Last updated
Was this helpful?