Agent Configuration Options

How to configure the Agent

Set these options at the agent level in the kubesvc.yaml configuration file. If deploying as a non-SpinnakerTM service, you need to specify a clouddriver.grpc endpoint (e.g.

Kubernetes account

At a minimum you will need to add an account, give it a name, and set its Spinnaker permissions.

Spinnaker Service and Infrastructure modes

In these modes, you set up multiple accounts per agent. Your configuration should look like:

    - name: account-01
      kubeconfigFile: /kubeconfigfiles/kubecfg-account01.yaml
    - ...  

If you are migrating accounts from Clouddriver, you can just copy the same block of configuration here. Unused properties are ignored.

Agent mode

In agent mode, your configuration should look like:

    - name: account-01
      serviceAccount: true


Settings Type Default Description
clouddriver.grpc string (hostname) spin-clouddriver-grpc:9091 Hostname of the Clouddriver or gRPC proxy endpoint
clouddriver.insecure boolean false If true, we’re connecting to a non TLS server
logging.file string stdout if not defined File to save logs to
logging.level string INFO Log level. Can be any of (case insensitive):
panic, fatal , error, warn (or warning), info, debug, trace
kubernetes.reconnectTimeoutMs integer 5000 How long to wait before reconnecting to Spinnaker
kubernetes.accounts[].name string none, required Name of the Kubernetes cluster in Spinnaker. Spinnaker still needs to accept that name.
kubernetes.accounts[].kubeConfigFile string none Path to the kubeconfig file if not using serviceAccount
kubernetes.accounts[].insecure boolean false Do not verify the TLS certificate of the Kubernetes API server
Don’t use without a good reason.
kubernetes.accounts[].context string empty If provided, will use the given context of the configured kubeconfig
kubernetes.accounts[].oAuthScopes []string empty List of OAuth scope when authenticating with gcp provider
kubernetes.accounts[].serviceAccount boolean false If true and the Agent runs in Kubernetes - use the current service account to call to the current API server. In that mode, you don’t need to provide a kubeconfig file.
kubernetes.accounts[].namespaces []string empty Whitelist of namespaces similar to Clouddriver’s.
This comes at a great cost of multiplying the resources by the number of namespaces.
kubernetes.accounts[].omitNamespaces []string empty Blacklist of namespaces
This comes at a great cost of multiplying the resources by the number of namespaces.
kubernetes.accounts[].kinds []string empty If not empty, only kinds in the list will be cached. Use the format <kind>.<apiGroup> (e.g. Deployment.apps)
kubernetes.accounts[].omitKinds []string empty List of kinds not to cache.
kubernetes.accounts[].metrics boolean false When true, sends pod metrics back to Spinnaker every 20s
kubernetes.accounts[].permissions map empty Same meaning as permissions in Clouddriver: under READ and WRITE list of roles authorized.
kubernetes.accounts[].maxResumableResourceAgeMs integer 300000 (5m) When connecting to Spinnaker, the Agent asks Clouddriver for the latest resource version known per resource that is not older than that setting.

The resource version is used to resume the watch without first doing a list - saving memory and time. There’s no guarantee that the resource version is still known. If not “remembered” by the Kubernetes API server, a list call will be used.
kubernetes.accounts[].onlySpinnakerManaged boolean false Only return Spinnaker managed resources
NOT IMPLEMENTED in the Agent but added to the plugin see kubesvc.runtime.defaults.onlySpinnakerManaged string localhost hostname of the server health check
server.port integer 8082 port of the server health check
server.ssl.enabled, server.ssl.certFile, server.ssl.keyFile, server.ssl.keyPassword, server.ssl.caCertFile, server.ssl.keyFilePassword, server.ssl.clientAuth Various options to control TLS config. Don’t bother, it’s just for the health endpoint.
prometheus.enabled boolean false Enable Prometheus handler
prometheus.port integer 8008 Port to expose Prometheus metrics on. Responds to both /metrics (standard) and /prometheus_metrics (Spinnaker default)
tasks.totalBudget integer 0 If > 0, limits the number of tasks that can be started. Tasks have different cost. Watches are considered free because they are part of the normal operations of the Agent.
tasks.budgetPerAccount integer 0 Same as above but per account. If both settings are provided, they’re both checked.
tasks.queueCheckFrequencyMs integer 2000 Frequency at which the Agent will check for new tasks to launch. Once launched a task is not stopped until explicitly requested (account unregistered or connection to Spinnaker lost)
certFile string None Client certificate to use when connecting to Spinnaker.
Not required but encouraged.
pprof.enabled boolean false Enable pprof endpoint. Useful for troubleshooting, slowness, memory leaks, and more!
pprof.port integer 6060 Port on which to respond to pprof requests
secrets.vault.* object none Vault configuration