Enable and Configure Dynamic Accounts in the Armory Scale Agent
Before you begin
You are familiar with Dynamic Accounts Architecture and Features.
The following Dynamic Accounts features use Clouddriver Account Management:
- Automatic account migration
- Clouddriver Account Management API request interception
Clouddriver Account Management is not enabled by default in Spinnaker or Armory Continuous Deployment. See Spinnaker’s Clouddriver Account Management page for how to enable the feature.
Scale Agent plugin
Dynamic Accounts is enabled by default starting with plugin versions v0.11.21/0.10.69/0.9.85.
If you are using a prior version of the plugin, you should enable Dynamic Accounts by setting kubesvc.dynamicAccounts.enabled: true
in your plugin configuration. For example:
|
|
dynamicAccounts
:
- enabled: (Optional) default: false; set to
true
to enable the Dynamic Accounts feature - maxRetries: (Optional) default: 3; the number of times to retry adding an account that fails the first time
- retryFrequencySeconds: (Optional) default: 5; the number of seconds to wait between trying to add a FAILED account
The remaining optional attributes in the dynamicAccounts
section are for configuring automatic migration of Clouddriver accounts to the Scale Agent. These options are discussed in detail in Migrate Clouddriver Kubernetes Accounts to the Armory Scale Agent.
If you want to use the interceptor feature to intercept requests sent to Clouddriver’s /credentials
endpoint, add:
dynamicAccounts:
enabled: true
interceptor:
enabled: true
Alternately, you can enable the autoscan for new Clouddriver accounts feature by configuring the following:
scanBatchSize
:scanFrequencySeconds
:namePatterns
: [’^account1.*’,’^.account2.']
For example:
|
|
Access the API
The Dynamic Accounts REST API provides endpoints to create, delete, get, migrate, and update Kubernetes accounts. You can’t access these endpoints through Gate. You should have kubectl
access to your Spinnaker cluster and port-forward
to be able to call the API.
kubectl port-forward deployment/spin-clouddriver 7002:7002 -n spinnaker
You can then access endpoints via http://localhost:7002
.
Scale Agent service
The Dynamic Accounts API is enabled by default in the Scale Agent Service:
|
|
You can disable dynamic accounts features by setting dynamicAccountsEnabled
to false
.
What’s next
- Migrate Clouddriver Kubernetes Accounts to the Armory Scale Agent
- Manage Kubernetes Accounts in the Armory Scale Agent
Feedback
Was this page helpful?
Thank you for letting us know!
Sorry to hear that. Please tell us how we can improve.
Last modified August 18, 2023: (02b163b7)