ContainerGroupProps
Properties for defining a ContainerGroup
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-eci-containergroup
Initializer
using AlibabaCloud.SDK.ROS.CDK.Eci;
new ContainerGroupProps {
object Container,
object ContainerGroupName,
object AcrRegistryInfo = null,
object ActiveDeadlineSeconds = null,
object AutoMatchImageCache = null,
object Cpu = null,
object DnsConfig = null,
object EipInstanceId = null,
object HostAliase = null,
object ImageRegistryCredential = null,
object ImageSnapshotId = null,
object InitContainer = null,
object InstanceType = null,
object Ipv6AddressCount = null,
object Memory = null,
object RamRoleName = null,
object ResourceGroupId = null,
object RestartPolicy = null,
object SecurityContextSysctl = null,
object SecurityGroupId = null,
object SlsEnable = null,
object SpotPriceLimit = null,
object SpotStrategy = null,
object Tag = null,
object TerminationGracePeriodSeconds = null,
object Volume = null,
object VSwitchId = null,
object ZoneId = null
};
Properties
Name | Type | Description |
---|---|---|
Container |
object |
Property container: The containers that constitute the container group. |
ContainerGroupName |
object |
Property containerGroupName: The name of the container group. |
AcrRegistryInfo |
object |
Property acrRegistryInfo: Enterprise Edition access credential configuration information. |
ActiveDeadlineSeconds |
object |
Property activeDeadlineSeconds: The validity period in seconds. |
AutoMatchImageCache |
object |
Property autoMatchImageCache: Specifies whether to automatically match the image cache. |
Cpu |
object |
Property cpu: CPU size. |
DnsConfig |
object |
Property dnsConfig: The information about DNS configurations. |
EipInstanceId |
object |
Property eipInstanceId: Elastic IP ID. |
HostAliase |
object |
Property hostAliase: Customize the hostname mapping of a container inside the pod. |
ImageRegistryCredential |
object |
Property imageRegistryCredential: The information that you need to log on to the container image repository, including the server address, username, and password. |
ImageSnapshotId |
object |
Property imageSnapshotId: Image cache ID or snapshot ID. |
InitContainer |
object |
Property initContainer: The containers that constitute the container group for initializing. |
InstanceType |
object |
Property instanceType: The type of the ECS instance. |
Ipv6AddressCount |
object |
Property ipv6AddressCount: The number of IPv6 addresses. |
Memory |
object |
Property memory: memory size. |
RamRoleName |
object |
Property ramRoleName: The RAM role that the container group assumes. |
ResourceGroupId |
object |
Property resourceGroupId: Resource group id. |
RestartPolicy |
object |
Property restartPolicy: The policy for restarting the instance. |
SecurityContextSysctl |
object |
Property securityContextSysctl: ECI Sysctl is valid for every container in ECI. |
SecurityGroupId |
object |
Property securityGroupId: The ID of the security group to which the instance belongs. |
SlsEnable |
object |
Property slsEnable: Enable user log collection. |
SpotPriceLimit |
object |
Property spotPriceLimit: Set the hourly maximum price of the instance. |
SpotStrategy |
object |
Property spotStrategy: Instance preemption strategy. |
Tag |
object |
Property tag: The list of container group tags in the form of key\/value pairs. |
TerminationGracePeriodSeconds |
object |
Property terminationGracePeriodSeconds: The buffer time for the program to handle operations before it is stopped. |
Volume |
object |
Property volume: The data volume. |
VSwitchId |
object |
Property vSwitchId: The ID of the specified VSwitch. |
ZoneId |
object |
Property zoneId: The ID of the zone in which the instance resides. |
Container
Required
public object Container { get; set; }
- Type: object
Property container: The containers that constitute the container group.
ContainerGroupName
Required
public object ContainerGroupName { get; set; }
- Type: object
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
public object AcrRegistryInfo { get; set; }
- Type: object
Property acrRegistryInfo: Enterprise Edition access credential configuration information.
ActiveDeadlineSeconds
Optional
public object ActiveDeadlineSeconds { get; set; }
- Type: object
Property activeDeadlineSeconds: The validity period in seconds.
AutoMatchImageCache
Optional
public object AutoMatchImageCache { get; set; }
- Type: object
Property autoMatchImageCache: Specifies whether to automatically match the image cache.
Cpu
Optional
public object Cpu { get; set; }
- Type: object
Property cpu: CPU size.
DnsConfig
Optional
public object DnsConfig { get; set; }
- Type: object
Property dnsConfig: The information about DNS configurations.
EipInstanceId
Optional
public object EipInstanceId { get; set; }
- Type: object
Property eipInstanceId: Elastic IP ID.
HostAliase
Optional
public object HostAliase { get; set; }
- Type: object
Property hostAliase: Customize the hostname mapping of a container inside the pod.
ImageRegistryCredential
Optional
public object ImageRegistryCredential { get; set; }
- Type: object
Property imageRegistryCredential: The information that you need to log on to the container image repository, including the server address, username, and password.
ImageSnapshotId
Optional
public object ImageSnapshotId { get; set; }
- Type: object
Property imageSnapshotId: Image cache ID or snapshot ID.
InitContainer
Optional
public object InitContainer { get; set; }
- Type: object
Property initContainer: The containers that constitute the container group for initializing.
InstanceType
Optional
public object InstanceType { get; set; }
- Type: object
Property instanceType: The type of the ECS instance.
Ipv6AddressCount
Optional
public object Ipv6AddressCount { get; set; }
- Type: object
Property ipv6AddressCount: The number of IPv6 addresses.
Memory
Optional
public object Memory { get; set; }
- Type: object
Property memory: memory size.
RamRoleName
Optional
public object RamRoleName { get; set; }
- Type: object
Property ramRoleName: The RAM role that the container group assumes.
ECI and ECS share the same RAM role.
ResourceGroupId
Optional
public object ResourceGroupId { get; set; }
- Type: object
Property resourceGroupId: Resource group id.
RestartPolicy
Optional
public object RestartPolicy { get; set; }
- Type: object
Property restartPolicy: The policy for restarting the instance.
Default value: Always.
SecurityContextSysctl
Optional
public object SecurityContextSysctl { get; set; }
- Type: object
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
public object SecurityGroupId { get; set; }
- Type: object
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
public object SlsEnable { get; set; }
- Type: object
Property slsEnable: Enable user log collection.
The default is False.
SpotPriceLimit
Optional
public object SpotPriceLimit { get; set; }
- Type: object
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
public object SpotStrategy { get; set; }
- Type: object
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
public object Tag { get; set; }
- Type: object
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
public object TerminationGracePeriodSeconds { get; set; }
- Type: object
Property terminationGracePeriodSeconds: The buffer time for the program to handle operations before it is stopped.
Volume
Optional
public object Volume { get; set; }
- Type: object
Property volume: The data volume.
You can specify a maximum of 20 data volumes.
VSwitchId
Optional
public object VSwitchId { get; set; }
- Type: object
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
public object ZoneId { get; set; }
- Type: object
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.