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: Enterprise Edition access credential configuration information. |
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: Image cache ID or snapshot ID. |
InitContainer |
interface{} |
Property initContainer: The containers that constitute the container group for initializing. |
InstanceType |
interface{} |
Property instanceType: The type of the ECS instance. |
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 specified VSwitch. |
ZoneId |
interface{} |
Property zoneId: The ID of the zone in which the instance resides. |
Container
Required
Container interface{}
- Type: interface{}
Property container: The containers that constitute the container group.
ContainerGroupName
Required
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.
AcrRegistryInfo
Optional
AcrRegistryInfo interface{}
- Type: interface{}
Property acrRegistryInfo: Enterprise Edition access credential configuration information.
ActiveDeadlineSeconds
Optional
ActiveDeadlineSeconds interface{}
- Type: interface{}
Property activeDeadlineSeconds: The validity period in seconds.
AutoMatchImageCache
Optional
AutoMatchImageCache interface{}
- Type: interface{}
Property autoMatchImageCache: Specifies whether to automatically match the image cache.
Cpu
Optional
Cpu interface{}
- Type: interface{}
Property cpu: CPU size.
DnsConfig
Optional
DnsConfig interface{}
- Type: interface{}
Property dnsConfig: The information about DNS configurations.
EipInstanceId
Optional
EipInstanceId interface{}
- Type: interface{}
Property eipInstanceId: Elastic IP ID.
HostAliase
Optional
HostAliase interface{}
- Type: interface{}
Property hostAliase: Customize the hostname mapping of a container inside the pod.
ImageRegistryCredential
Optional
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.
ImageSnapshotId
Optional
ImageSnapshotId interface{}
- Type: interface{}
Property imageSnapshotId: Image cache ID or snapshot ID.
InitContainer
Optional
InitContainer interface{}
- Type: interface{}
Property initContainer: The containers that constitute the container group for initializing.
InstanceType
Optional
InstanceType interface{}
- Type: interface{}
Property instanceType: The type of the ECS instance.
Ipv6AddressCount
Optional
Ipv6AddressCount interface{}
- Type: interface{}
Property ipv6AddressCount: The number of IPv6 addresses.
Memory
Optional
Memory interface{}
- Type: interface{}
Property memory: memory size.
RamRoleName
Optional
RamRoleName interface{}
- Type: interface{}
Property ramRoleName: The RAM role that the container group assumes.
ECI and ECS share the same RAM role.
ResourceGroupId
Optional
ResourceGroupId interface{}
- Type: interface{}
Property resourceGroupId: Resource group id.
RestartPolicy
Optional
RestartPolicy interface{}
- Type: interface{}
Property restartPolicy: The policy for restarting the instance.
Default value: Always.
SecurityContextSysctl
Optional
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
SecurityGroupId
Optional
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.
SlsEnable
Optional
SlsEnable interface{}
- Type: interface{}
Property slsEnable: Enable user log collection.
The default is False.
SpotPriceLimit
Optional
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.
SpotStrategy
Optional
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.
Tag
Optional
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.
TerminationGracePeriodSeconds
Optional
TerminationGracePeriodSeconds interface{}
- Type: interface{}
Property terminationGracePeriodSeconds: The buffer time for the program to handle operations before it is stopped.
Volume
Optional
Volume interface{}
- Type: interface{}
Property volume: The data volume.
You can specify a maximum of 20 data volumes.
VSwitchId
Optional
VSwitchId interface{}
- Type: interface{}
Property vSwitchId: The ID of the specified VSwitch.
If no switch is specified, the system automatically uses the default switch in the default VPC in the selected region. If no default VPC or default switch is available in the region, the system automatically creates a default VPC and a default switch
ZoneId
Optional
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.