ContainerGroupProps
Properties for defining a ContainerGroup.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-eci-containergroup
Initializer
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkeci"
&alicloudroscdkeci.ContainerGroupProps {
Container: interface{},
ContainerGroupName: interface{},
AcrRegistryInfo: interface{},
ActiveDeadlineSeconds: interface{},
AutoMatchImageCache: interface{},
Cpu: interface{},
DnsConfig: interface{},
EipInstanceId: interface{},
HostAliase: interface{},
ImageRegistryCredential: interface{},
ImageSnapshotId: interface{},
InitContainer: interface{},
InstanceType: interface{},
Ipv6AddressCount: interface{},
Memory: interface{},
RamRoleName: interface{},
ResourceGroupId: interface{},
RestartPolicy: interface{},
SecurityContextSysctl: interface{},
SecurityGroupId: interface{},
SlsEnable: interface{},
SpotPriceLimit: interface{},
SpotStrategy: interface{},
Tag: interface{},
TerminationGracePeriodSeconds: interface{},
Volume: interface{},
VSwitchId: interface{},
ZoneId: interface{},
}
Properties
| Name | Type | Description |
|---|---|---|
Container | interface{} | Property container: The containers that constitute the container group. |
ContainerGroupName | interface{} | Property containerGroupName: The name of the container group. |
AcrRegistryInfo | interface{} | Property acrRegistryInfo: A list of ACR Enterprise instances. |
ActiveDeadlineSeconds | interface{} | Property activeDeadlineSeconds: The validity period in seconds. |
AutoMatchImageCache | interface{} | Property autoMatchImageCache: Specifies whether to automatically match the image cache. |
Cpu | interface{} | Property cpu: CPU size. |
DnsConfig | interface{} | Property dnsConfig: The information about DNS configurations. |
EipInstanceId | interface{} | Property eipInstanceId: Elastic IP ID. |
HostAliase | interface{} | Property hostAliase: Customize the hostname mapping of a container inside the pod. |
ImageRegistryCredential | interface{} | Property imageRegistryCredential: The information that you need to log on to the container image repository, including the server address, username, and password. |
ImageSnapshotId | interface{} | Property imageSnapshotId: The ID of the image cache. |
InitContainer | interface{} | Property initContainer: The containers that constitute the container group for initializing. |
InstanceType | interface{} | Property instanceType: The ECS instance type. |
Ipv6AddressCount | interface{} | Property ipv6AddressCount: The number of IPv6 addresses. |
Memory | interface{} | Property memory: memory size. |
RamRoleName | interface{} | Property ramRoleName: The RAM role that the container group assumes. |
ResourceGroupId | interface{} | Property resourceGroupId: Resource group id. |
RestartPolicy | interface{} | Property restartPolicy: The policy for restarting the instance. |
SecurityContextSysctl | interface{} | Property securityContextSysctl: ECI Sysctl is valid for every container in ECI. |
SecurityGroupId | interface{} | Property securityGroupId: The ID of the security group to which the instance belongs. |
SlsEnable | interface{} | Property slsEnable: Enable user log collection. |
SpotPriceLimit | interface{} | Property spotPriceLimit: Set the hourly maximum price of the instance. |
SpotStrategy | interface{} | Property spotStrategy: Instance preemption strategy. |
Tag | interface{} | Property tag: The list of container group tags in the form of key\/value pairs. |
TerminationGracePeriodSeconds | interface{} | Property terminationGracePeriodSeconds: The buffer time for the program to handle operations before it is stopped. |
Volume | interface{} | Property volume: The data volume. |
VSwitchId | interface{} | Property vSwitchId: The ID of the vSwitch to which the instance belongs. |
ZoneId | interface{} | Property zoneId: The ID of the zone in which the instance resides. |
ContainerRequired
Container interface{}
- Type: interface{}
Property container: The containers that constitute the container group.
ContainerGroupNameRequired
ContainerGroupName interface{}
- Type: interface{}
Property containerGroupName: The name of the container group.
The length is [2,128] English lowercase letters, numbers or hyphens (-), cannot begin or end with a hyphens.
AcrRegistryInfoOptional
AcrRegistryInfo interface{}
- Type: interface{}
Property acrRegistryInfo: A list of ACR Enterprise instances.
ActiveDeadlineSecondsOptional
ActiveDeadlineSeconds interface{}
- Type: interface{}
Property activeDeadlineSeconds: The validity period in seconds.
AutoMatchImageCacheOptional
AutoMatchImageCache interface{}
- Type: interface{}
Property autoMatchImageCache: Specifies whether to automatically match the image cache.
The default value is false.
CpuOptional
Cpu interface{}
- Type: interface{}
Property cpu: CPU size.
DnsConfigOptional
DnsConfig interface{}
- Type: interface{}
Property dnsConfig: The information about DNS configurations.
EipInstanceIdOptional
EipInstanceId interface{}
- Type: interface{}
Property eipInstanceId: Elastic IP ID.
HostAliaseOptional
HostAliase interface{}
- Type: interface{}
Property hostAliase: Customize the hostname mapping of a container inside the pod.
ImageRegistryCredentialOptional
ImageRegistryCredential interface{}
- Type: interface{}
Property imageRegistryCredential: The information that you need to log on to the container image repository, including the server address, username, and password.
ImageSnapshotIdOptional
ImageSnapshotId interface{}
- Type: interface{}
Property imageSnapshotId: The ID of the image cache.
InitContainerOptional
InitContainer interface{}
- Type: interface{}
Property initContainer: The containers that constitute the container group for initializing.
InstanceTypeOptional
InstanceType interface{}
- Type: interface{}
Property instanceType: The ECS instance type.
You can specify multiple instance types. For more information, see Create an instance by specifying an ECS instance type.
Ipv6AddressCountOptional
Ipv6AddressCount interface{}
- Type: interface{}
Property ipv6AddressCount: The number of IPv6 addresses.
The value is fixed at 1, which indicates that one IPv6 address can be bound to an ECI instance.
MemoryOptional
Memory interface{}
- Type: interface{}
Property memory: memory size.
RamRoleNameOptional
RamRoleName interface{}
- Type: interface{}
Property ramRoleName: The RAM role that the container group assumes.
ECI and ECS share the same RAM role.
ResourceGroupIdOptional
ResourceGroupId interface{}
- Type: interface{}
Property resourceGroupId: Resource group id.
RestartPolicyOptional
RestartPolicy interface{}
- Type: interface{}
Property restartPolicy: The policy for restarting the instance.
Default value: Always.
SecurityContextSysctlOptional
SecurityContextSysctl interface{}
- Type: interface{}
Property securityContextSysctl: ECI Sysctl is valid for every container in ECI.
Currently only two Sysctl keyNames are supported: Kernel.shm_rmid_forced Kernel.msgmax
SecurityGroupIdOptional
SecurityGroupId interface{}
- Type: interface{}
Property securityGroupId: The ID of the security group to which the instance belongs.
Instances in the same security group can access one another. If no security group is specified, the system automatically uses the default security group in the region you select. If you do not have a default security group in this region, the system automatically creates a default security group and adds the container protocol and port you declared to the inbound direction rules of this security group.
SlsEnableOptional
SlsEnable interface{}
- Type: interface{}
Property slsEnable: Enable user log collection.
The default is False.
SpotPriceLimitOptional
SpotPriceLimit interface{}
- Type: interface{}
Property spotPriceLimit: Set the hourly maximum price of the instance.
It supports a maximum of 3 decimal places. It takes effect when the value of the parameter SpotStrategy is SpotWithPriceLimit.
SpotStrategyOptional
SpotStrategy interface{}
- Type: interface{}
Property spotStrategy: Instance preemption strategy.
Ranges: NoSpot (default): normal pay-as-you-go instances. SpotWithPriceLimit: Preemptive instance that sets a cap price. SpotAsPriceGo: The system automatically bids, following the current market actual price.
TagOptional
Tag interface{}
- Type: interface{}
Property tag: The list of container group tags in the form of key\/value pairs.
You can define a maximum of 20 tags for each container group.
TerminationGracePeriodSecondsOptional
TerminationGracePeriodSeconds interface{}
- Type: interface{}
Property terminationGracePeriodSeconds: The buffer time for the program to handle operations before it is stopped.
VolumeOptional
Volume interface{}
- Type: interface{}
Property volume: The data volume.
You can specify a maximum of 20 data volumes.
VSwitchIdOptional
VSwitchId interface{}
- Type: interface{}
Property vSwitchId: The ID of the vSwitch to which the instance belongs.
You can specify up to 10 vSwitch IDs. Separate multiple IDs with commas (,), for example, vsw-*,vsw-*. If you do not specify a vSwitch, the system uses the default vSwitch in the default VPC of the selected region. If you do not have a default VPC and a default vSwitch in the region, the system creates a default VPC and a default vSwitch.
The number of IP addresses in the vSwitch CIDR block determines the maximum number of ECI instances that can be created in the vSwitch. Plan the CIDR block in advance.
ZoneIdOptional
ZoneId interface{}
- Type: interface{}
Property zoneId: The ID of the zone in which the instance resides.
If you leave the parameter blank, the system assigns a zone for you. The default value is blank.