Asg
Bases: DuploTenantResourceV2
Manage Duplo ASGs
Duplo ASGs are Auto Scaling Groups that manage the number of hosts within a tenant.
apply
Apply a service.
create
Create an ASG
CLI Usage
Contents of theasg.yaml
file
FriendlyName: duploctl
Zone: 1
IsEbsOptimized: false
DesiredCapacity: 1
MinSize: 1
MaxSize: 2
MetaData:
- Key: OsDiskSize
Value: 30
- Key: MetadataServiceOption
Value: enabled_v2_only
UseLaunchTemplate: true
CanScaleFromZero: false
IsUserDataCombined: true
KeyPairType:
Capacity: t3.small
Base64UserData: ''
TagsCsv: ''
AgentPlatform: 7
IsClusterAutoscaled: true
IsMinion: true
Example: One liner example
echo """
FriendlyName: duploctl
Zone: 1
IsEbsOptimized: false
DesiredCapacity: 1
MinSize: 1
MaxSize: 2
MetaData:
- Key: OsDiskSize
Value: 30
- Key: MetadataServiceOption
Value: enabled_v2_only
UseLaunchTemplate: true
CanScaleFromZero: false
IsUserDataCombined: true
KeyPairType:
Capacity: t3.small
Base64UserData: ''
TagsCsv: ''
AgentPlatform: 7
IsClusterAutoscaled: true
IsMinion: true
""" | duploctl asg create -f -
delete
Delete an ASG
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name
|
NAME
|
The name of the asg to delete. |
required |
Returns:
Name | Type | Description |
---|---|---|
message |
dict
|
A message that the asg was successfully deleted. |
find
scale
Scale an ASG.
Note: "-m" represents Minimum instances and "-M" represents Maximum instances.
CLI Usage
```sh
duploctl asg scale -n
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name
|
NAME
|
The name of the asg to scale. |
required |
min
|
MIN
|
The minimum number of instances. |
None
|
max
|
MAX
|
The maximum number of instances. |
None
|
Returns:
Name | Type | Description |
---|---|---|
message |
dict
|
A messaget that the asg was successfully scaled. |
update
Update an ASG.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
body
|
BODY
|
The body of the request. |
required |
Returns:
Name | Type | Description |
---|---|---|
message |
dict
|
A message that the asg was successfully updated |