Memanggil API DescribeEciScalingConfigurationDetail untuk mengueri detail konfigurasi penskalaan grup penskalaan berdasarkan ID konfigurasi penskalaan (seperti ukuran penyimpanan sementara, jumlah alamat IPv6, dan bandwidth elastic IP address). Output dapat dalam format YAML.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ess:DescribeEciScalingConfigurationDetail |
get |
*ScalingGroup
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID wilayah grup penskalaan tempat aturan penskalaan berada. |
cn-beijing |
| ScalingGroupId |
string |
No |
ID grup penskalaan tempat konfigurasi penskalaan berada. |
asg-bp1ffogfdauy0jw0**** |
| ScalingConfigurationId |
string |
Yes |
ID konfigurasi penskalaan dari grup penskalaan tipe ECI. |
asc-bp1ffogfdauy0nu5**** |
| OutputFormat |
string |
No |
Format output. Saat ini, hanya YAML yang didukung. Valid values:
|
yaml |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
6EF9BFEE-FE07-4627-B8FB-14326FB9**** |
| ScalingConfiguration |
object |
Detail konfigurasi penskalaan. |
|
| CreationTime |
string |
Waktu saat konfigurasi penskalaan dibuat. |
2023-05-10T02:39:15Z |
| ScalingConfigurationName |
string |
Nama konfigurasi penskalaan. |
scalingconfi**** |
| SecurityGroupId |
string |
ID grup keamanan tempat instans ECI berada. Instans ECI dalam grup keamanan yang sama dapat saling mengakses. |
sg-bp18kz60mefs**** |
| ActiveDeadlineSeconds |
integer |
Periode validitas. Satuan: detik. |
60 |
| SpotStrategy |
string |
Kebijakan preemption instans. Nilai yang valid:
|
NoSpot |
| AutoCreateEip |
boolean |
Menunjukkan apakah elastic IP address (EIP) secara otomatis dibuat dan diikat ke instans ECI. |
true |
| ScalingGroupId |
string |
ID grup penskalaan. |
asg-bp1frlu04fq4zv65b1bh |
| EphemeralStorage |
integer |
Ukuran penyimpanan sementara. Satuan: GiB. |
20 |
| Ipv6AddressCount |
integer |
Jumlah alamat IPv6. |
1 |
| Description |
string |
Catatan
Parameter ini tidak tersedia untuk digunakan. |
This is an example. |
| EipBandwidth |
integer |
Bandwidth elastic IP address (EIP). Nilai default: 5 Mbit/s. |
5 |
| ImageSnapshotId |
string |
ID cache image. |
imc-2zebxkiifuyzzlhl**** |
| Memory |
number |
Ukuran memori. Satuan: GiB. Menentukan CPU dan Memory secara bersamaan mendefinisikan rentang tipe instans. Misalnya, CPU=2 dan Memory=16 mendefinisikan semua tipe instans dengan 2 vCPU dan 16 GiB memori. Auto Scaling menentukan kumpulan tipe instans yang tersedia berdasarkan faktor seperti optimasi I/O dan zona, dan membuat instans dengan harga terendah dengan mengurutkan berdasarkan harga. Catatan
Konfigurasi rentang ini hanya berlaku dalam mode optimasi biaya dan saat tidak ada tipe instans yang ditentukan dalam konfigurasi penskalaan. |
4 |
| RestartPolicy |
string |
Kebijakan restart grup container. Nilai yang valid:
|
Always |
| SpotPriceLimit |
number |
Harga maksimum per jam untuk instans preemptible. Parameter ini hanya dikembalikan saat SpotStrategy diatur ke SpotWithPriceLimit. |
0.025 |
| IngressBandwidth |
integer |
Batas bandwidth masuk. Satuan: byte. |
1024000 |
| CpuOptionsThreadsPerCore |
integer |
Jumlah thread per core. Hanya beberapa tipe instans yang mendukung pengaturan kustom. Nilai 1 menunjukkan bahwa Hyper-Threading dinonaktifkan. Untuk informasi lebih lanjut, lihat Menyesuaikan opsi CPU. |
2 |
| TerminationGracePeriodSeconds |
integer |
Waktu buffer untuk program menangani operasi sebelum shutdown. |
60 |
| LoadBalancerWeight |
integer |
Bobot instans ECI sebagai server backend instans Server Load Balancer (SLB). Nilai yang valid: 1 hingga 100. Nilai default: 50. |
50 |
| DnsPolicy |
string |
Kebijakan DNS. |
Default |
| HostName |
string |
Hostname. |
hostname |
| EgressBandwidth |
integer |
Batas bandwidth keluar. Satuan: byte. |
10485760 |
| RegionId |
string |
ID wilayah grup penskalaan tempat aturan penskalaan berada. |
cn-shanghai |
| RamRoleName |
string |
Nama peran RAM instans. ECI dan ECS berbagi peran RAM instans. Untuk informasi lebih lanjut, lihat Menggunakan peran RAM instans dengan memanggil operasi API. |
ram:PassRole |
| Cpu |
number |
Jumlah vCPU pada tingkat instans. Satuan: core. |
2.0 |
| AutoMatchImageCache |
boolean |
Menunjukkan apakah cache image secara otomatis dicocokkan. Nilai default: false. |
true |
| ResourceGroupId |
string |
ID grup sumber daya. |
rg-acfmwozpmmksakq |
| ContainerGroupName |
string |
Nama instans grup container. |
test |
| ScalingConfigurationId |
string |
ID konfigurasi penskalaan. |
asc-2zec39vg84usxdocme6a |
| CpuOptionsCore |
integer |
Jumlah core CPU fisik. Hanya beberapa tipe instans yang mendukung pengaturan kustom. |
2 |
| SlsEnable |
boolean |
Menunjukkan apakah pengumpulan log pengguna diaktifkan. Nilai default: false. |
false |
| Containers |
array<object> |
Daftar container yang termasuk dalam instans. |
|
|
array<object> |
Daftar container yang termasuk dalam instans. |
||
| ReadinessProbeHttpGetPath |
string |
The path to which HTTP Get requests are sent when you use the HTTP requests to perform readiness probes. |
/usr/local |
| ReadinessProbeSuccessThreshold |
integer |
The minimum number of consecutive successes before a failed readiness probe is considered successful. Default value: 1. Valid value: 1. |
1 |
| LivenessProbePeriodSeconds |
integer |
The interval at which liveness probes are performed. Unit: seconds. Default value: 10. Minimum value: 1. |
5 |
| LivenessProbeTcpSocketPort |
integer |
The port detected by TCP sockets when you use the TCP sockets to perform liveness probes. |
80 |
| LivenessProbeHttpGetScheme |
string |
The protocol type of HTTP GET requests when you use the HTTP requests to perform liveness probes. Valid values:
|
HTTP |
| WorkingDir |
string |
The working directory in the container. |
/usr/local/nginx |
| Tty |
boolean |
Specifies whether to enable the Interaction feature. Valid values:
If the command is a /bin/bash command, the value of this parameter is true. Default value: false. |
true |
| LivenessProbeHttpGetPort |
integer |
The port detected by HTTP Get requests when you use the HTTP requests to perform liveness probes. |
8080 |
| Gpu |
integer |
The number of GPUs. |
2 |
| ReadinessProbeInitialDelaySeconds |
integer |
The number of seconds that elapses from the startup of the container to the start time of a readiness probe. |
5 |
| Stdin |
boolean |
Indicates whether the container allocates buffer resources to standard input streams when the container is running. If this parameter is not specified, an end-of-file (EOF) error may occur when standard input streams in the container are read. Default value: false. |
true |
| Memory |
number |
The memory size. |
2.0 |
| Name |
string |
The container name. |
nginx |
| SecurityContextReadOnlyRootFilesystem |
boolean |
Indicates whether the root file system on which the container runs is read-only. Valid value: true. |
true |
| LivenessProbeHttpGetPath |
string |
The path to which HTTP Get requests are sent when you use the HTTP requests to perform liveness probes. |
/usr/nginx/ |
| Image |
string |
The container image. |
registry-vpc.aliyuncs.com/eci_open/alpine:3.5 |
| ReadinessProbeTcpSocketPort |
integer |
The port detected by TCP sockets when you use the TCP sockets to perform readiness probes. |
80 |
| ReadinessProbeHttpGetScheme |
string |
The protocol type of HTTP GET requests when you use the HTTP requests to perform readiness probes. Valid values:
|
HTTP |
| ReadinessProbeHttpGetPort |
integer |
The path to which HTTP Get requests are sent when you use the HTTP Get requests to perform readiness probes. |
80 |
| LivenessProbeSuccessThreshold |
integer |
The minimum number of consecutive successes before a failed liveness probe is considered successful. Default value: 1. Valid value: 1. |
1 |
| ReadinessProbeTimeoutSeconds |
integer |
The timeout period of a readiness probe. Default value: 1. Minimum value: 1. Unit: seconds. |
5 |
| SecurityContextRunAsUser |
integer |
The ID of the user that runs the entry point of the container process. |
1000 |
| LivenessProbeInitialDelaySeconds |
integer |
The number of seconds that elapses from the startup of the container to the start time of a liveness probe. |
10 |
| ReadinessProbePeriodSeconds |
integer |
The interval at which readiness probes are performed. Unit: seconds. Default value: 10. Minimum value: 1. |
5 |
| ImagePullPolicy |
string |
The image pulling policy. |
Always |
| StdinOnce |
boolean |
Indicates whether standard input streams are disconnected after a client is disconnected. If Stdin is set to true, standard input streams remain connected among multiple sessions. If StdinOnce is set to true, standard input streams are connected after the container is started, and remain idle until a client is connected to receive data. After the client is disconnected, streams are also disconnected, and remain disconnected until the container restarts. |
true |
| Cpu |
number |
The number of vCPUs that are allocated to the elastic container instance. |
2 |
| LivenessProbeTimeoutSeconds |
integer |
The timeout period of a liveness probe. Default value: 1. Minimum value: 1. Unit: seconds. |
10 |
| ReadinessProbeFailureThreshold |
integer |
The minimum number of consecutive failures before a successful readiness probe is considered failed. Default value: 3. |
3 |
| LivenessProbeFailureThreshold |
integer |
The minimum number of consecutive failures before a successful liveness probe is considered failed. Default value: 3. |
3 |
| Ports |
array<object> |
The exposed ports and protocols. |
|
|
object |
|||
| Port |
integer |
The port number. Valid values: 1 to 65535. |
8083 |
| Protocol |
string |
The protocol type. Valid values:
|
TCP |
| VolumeMounts |
array<object> |
The volumes that are mounted to the container. |
|
|
object |
|||
| ReadOnly |
boolean |
Indicates whether the volume is read-only. Default value: false. |
true |
| SubPath |
string |
The subdirectory of the volume. |
data2/ |
| Name |
string |
The volume name. |
default-volume1 |
| MountPropagation |
string |
The mount propagation setting of the volume. Mount propagation enables volumes mounted on one container to be shared among other containers within the same pod or across distinct pods residing on the same node. Valid values:
Default value: None. |
None |
| MountPath |
string |
The directory in which the container mounts the volume. Catatan
Data in this directory is overwritten by the data on the volume. Proceed with caution if you specify this parameter. |
/pod/data |
| EnvironmentVars |
array<object> |
The environment variables. |
|
|
object |
|||
| Key |
string |
The name of the environment variable. |
PATH |
| Value |
string |
The value of the environment variable. |
/usr/bin/ |
| FieldRefFieldPath |
string |
Catatan
This parameter is not available for use. |
fieldPath |
| Commands |
array |
The container startup commands. |
|
|
string |
The container startup command. |
sleep |
|
| LivenessProbeExecCommands |
array |
The commands that are run in the container when you use a CLI to perform liveness probes. |
|
|
string |
The command that is run in the container when you use a CLI to perform a liveness probe. |
cat /tmp/healthy |
|
| Args |
array |
The arguments that are passed to the container startup commands. |
|
|
string |
The argument that is passed to the container startup command. |
100 |
|
| ReadinessProbeExecCommands |
array |
The commands that are run in the container when you use a CLI to perform readiness probes. |
|
|
string |
The command that is run in the container when you use a CLI to perform a readiness probe. |
cat /tmp/healthy |
|
| SecurityContextCapabilityAdds |
array |
The permissions that are granted to the processes in the container. Valid values: NET_ADMIN and NET_RAW. |
|
|
string |
The permission that is granted to the process in the container. Valid values: NET_ADMIN and NET_RAW. |
NET_ADMIN |
|
| LifecyclePostStartHandlerHttpGetHost |
string |
The IP address of the host to the HTTP GET requests for configuring the postStart callback function are sent. |
10.0.XX.XX |
| LifecyclePostStartHandlerHttpGetPort |
integer |
The port over which the HTTP GET requests for configuring the postStart callback function are sent. |
80 |
| LifecyclePostStartHandlerHttpGetPath |
string |
The path to the HTTP GET requests for configuring the postStart callback function are sent. |
/healthyz |
| LifecyclePostStartHandlerHttpGetScheme |
string |
The protocol type of the HTTP Get requests that are used for configuring the postStart callback function. |
HTTP |
| LifecyclePostStartHandlerExecs |
array |
The commands that are run by using a CLI for configuring the postStart callback function within the container. |
|
|
string |
The command that is run by using a CLI for configuring the postStart callback function within the container. |
["/bin/sh", "-c","echo Hello from the preStop handler > /usr/share/message"] |
|
| LifecyclePostStartHandlerTcpSocketHost |
string |
The IP address of the host detected by the TCP sockets that are used for configuring the postStart callback function. |
10.0.XX.XX |
| LifecyclePostStartHandlerTcpSocketPort |
integer |
The port detected by the TCP sockets that are used for configuring the postStart callback function. |
80 |
| LifecyclePreStopHandlerHttpGetHost |
string |
The IP address of the host to which the HTTP GET requests for configuring the preStop callback function are sent. |
10.0.XX.XX |
| LifecyclePreStopHandlerHttpGetPort |
integer |
The port over which the HTTP GET requests for configuring the preStop callback function are sent. |
80 |
| LifecyclePreStopHandlerHttpGetPath |
string |
The path to which the HTTP GET requests for configuring the preStop callback function are sent. |
/healthyz |
| LifecyclePreStopHandlerHttpGetScheme |
string |
The protocol type of the HTTP Get requests that are used for configuring the preStop callback function. |
HTTP |
| LifecyclePreStopHandlerExecs |
array |
The commands that are run by using a CLI for configuring the preStop callback function within the container. |
|
|
string |
The command that is run by using a CLI for configuring the preStop callback function within the container. |
["/bin/sh", "-c","echo Hello from the preStop handler > /usr/share/message"] |
|
| LifecyclePreStopHandlerTcpSocketHost |
string |
The IP address of the host detected by the TCP sockets that are used for configuring the preStop callback function. |
10.0.XX.XX |
| LifecyclePreStopHandlerTcpSocketPort |
integer |
The port detected by the TCP sockets that are used for configuring the preStop callback function. |
80 |
| InitContainers |
array<object> |
Daftar init container. |
|
|
array<object> |
Daftar init container. |
||
| SecurityContextReadOnlyRootFilesystem |
boolean |
Indicates whether the root file system on which the init container runs is read-only. Valid value: true. |
|
| ImagePullPolicy |
string |
The image pulling policy. |
Always |
| WorkingDir |
string |
The working directory of the init container. |
/www |
| Cpu |
number |
The number of vCPUs that are allocated to the init container. |
0.5 |
| Image |
string |
The image of the init container. |
registry-vpc.cn-hongkong.aliyuncs.com/eci_open/nginx:alpine |
| Gpu |
integer |
The number of GPUs that are allocated to the init container. |
1 |
| SecurityContextRunAsUser |
string |
The ID of the user that runs the init container. |
1000 |
| Memory |
number |
The memory size of the init container. |
1.0 |
| Name |
string |
The name of the init container. |
test-init |
| InitContainerEnvironmentVars |
array<object> |
The environment variables of the init container. |
|
|
object |
|||
| Key |
string |
The name of the environment variable. |
PATH |
| Value |
string |
The value of the environment variable. |
/usr/local/bin |
| FieldRefFieldPath |
string |
Catatan
This parameter is not available for use. |
path |
| InitContainerPorts |
array<object> |
The ports of the init container. |
|
|
object |
|||
| Port |
integer |
The port number. Valid values: 1 to 65535. |
1024 |
| Protocol |
string |
The protocol type. Valid values:
|
UDP |
| InitContainerVolumeMounts |
array<object> |
The volume mounts of the init container. |
|
|
object |
|||
| ReadOnly |
boolean |
Indicates whether the mount directory is read-only. Default value: false. |
false |
| SubPath |
string |
The subdirectory of the volume. |
/usr/sub/ |
| Name |
string |
The volume name. |
test-empty |
| MountPropagation |
string |
The mount propagation setting of the volume. Mount propagation enables volumes mounted on one container to be shared among other containers within the same pod or across distinct pods residing on the same node. Valid values:
Default value: None. |
None |
| MountPath |
string |
The directory to which the init container mounts the volume. Catatan
Data in this directory is overwritten by the data on the volume. Proceed with caution if you specify this parameter. |
/usr/share/ |
| SecurityContextCapabilityAdds |
array |
The permissions that are granted to the processes in the init container. Valid values: NET_ADMIN and NET_RAW. |
|
|
string |
The permission that is granted to the process in the init container. Valid values: NET_ADMIN and NET_RAW. Catatan
To use NET_RAW, you must submit a ticket. |
NET_ADMIN |
|
| InitContainerCommands |
array |
The commands that are used to start the init container. |
|
|
string |
The command that is used to start the init container. |
sleep |
|
| InitContainerArgs |
array |
The arguments that are passed to the startup commands of the init container. |
|
|
string |
The argument that is passed to the startup command of the init container. |
10 |
|
| Tags |
array<object> |
Pasangan kunci-nilai tag instans. |
|
|
object |
Pasangan kunci-nilai tag instans. |
||
| Key |
string |
The tag key. |
version |
| Value |
string |
The tag value. |
3 |
| Volumes |
array<object> |
Informasi volume. |
|
|
array<object> |
Informasi volume. |
||
| Type |
string |
The volume type. Valid values:
|
EmptyDirVolume |
| DiskVolumeDiskId |
string |
The ID of the disk volume. |
d-xx |
| DiskVolumeFsType |
string |
The system type of the disk volume. |
xfs |
| EmptyDirVolumeMedium |
string |
The storage medium of the emptyDir volume. If you do not specify a storage medium for the emptyDir volume, the volume stores data in the file system of the node by default. We recommend that you set this parameter to memory. In this case, the emptyDir volume stores data in the specified memory. |
memory |
| NFSVolumePath |
string |
The path to the Network File System (NFS) volume. |
/share |
| DiskVolumeDiskSize |
integer |
The size of the disk volume. Unit: GiB. |
15 |
| NFSVolumeReadOnly |
boolean |
Indicates whether the NFS volume is read-only. Default value: false. |
false |
| FlexVolumeFsType |
string |
The type of the mounted file system. The default value is determined by the script of FlexVolume. |
ext4 |
| ConfigFileVolumeDefaultMode |
integer |
The default permissions on the ConfigFile volume. |
0644 |
| FlexVolumeDriver |
string |
The name of the FlexVolume driver. |
flexvolume |
| FlexVolumeOptions |
string |
The FlexVolume options. |
{"volumeId":"d-2zehdahrwoa7srg****","performanceLevel": "PL2"} |
| NFSVolumeServer |
string |
The endpoint of the NFS server. |
3f9cd4a596-naw76.cn-shanghai.nas.aliyuncs.com |
| Name |
string |
The volume name. |
default-volume1 |
| ConfigFileVolumeConfigFileToPaths |
array<object> |
The paths to the configuration files. |
|
|
object |
|||
| Path |
string |
The path to the configuration file. |
/usr/bin/ |
| Mode |
integer |
The permissions on the ConfigFile volume. |
0644 |
| Content |
string |
The content of the configuration file. |
bGl1bWk= |
| EmptyDirVolumeSizeLimit |
string |
The storage size of the emptyDir volume. |
256Mi |
| HostPathVolumeType |
string |
The type of the HostPath volume. |
Directory |
| HostPathVolumePath |
string |
The path to the HostPath volume on the host. |
/pod/data |
| ImageRegistryCredentials |
array<object> |
Informasi registry image. |
|
|
object |
Informasi registry image. |
||
| Password |
string |
The password of the image repository. |
yourpaasword |
| Server |
string |
The domain name of the image repository. |
registry-vpc.cn-shanghai.aliyuncs.com |
| UserName |
string |
The username of the image repository. |
yourusername |
| DnsConfigOptions |
array<object> |
Opsi konfigurasi DNS. |
|
|
object |
Opsi konfigurasi DNS. |
||
| Name |
string |
The variable name of the option. |
name |
| Value |
string |
The variable value of the option. |
value |
| HostAliases |
array<object> |
Pemetaan hostname kustom untuk container dalam instans. |
|
|
object |
Pemetaan hostname kustom untuk container dalam instans. |
||
| Ip |
string |
The added IP address. |
192.0.XX.XX |
| Hostnames |
array |
The added hostnames. |
|
|
string |
The added hostname. |
['hehe.com', 'haha.com'] |
|
| SecurityContextSysCtls |
array<object> |
Informasi sistem dari konteks keamanan tempat instans berjalan. |
|
|
object |
Nilai variabel dari konteks keamanan tempat instans berjalan. |
||
| Name |
string |
The system name of the security context in which the elastic container instance runs. |
kernel.msgmax |
| Value |
string |
The variable value of the security context in which the elastic container instance runs. |
65536 |
| AcrRegistryInfos |
array<object> |
Informasi instans ACR Enterprise Edition. |
|
|
object |
Informasi instans ACR Enterprise Edition. |
||
| InstanceId |
string |
The ID of the Container Registry Enterprise Edition instance. |
cri-nwj395hgf6f3**** |
| InstanceName |
string |
The name of the Container Registry Enterprise Edition instance. |
acr-test |
| RegionId |
string |
The region ID of the Container Registry Enterprise Edition instance. |
cn-hangzhou |
| Domains |
array |
The domain names of the Container Registry Enterprise Edition instance. By default, all domain names of the instance are displayed. Multiple domain names are separated by commas (,). |
|
|
string |
The domain name of the Container Registry Enterprise Edition instance. By default, all domain names of the instance are displayed. Multiple domain names are separated by commas (,). |
*****-****-registry.cn-beijing.cr.aliyuncs.com |
|
| DnsConfigNameServers |
array |
Daftar alamat IP server DNS. |
|
|
string |
Daftar alamat IP server DNS. |
172.10.*.** |
|
| DnsConfigSearches |
array |
Daftar domain pencarian DNS. |
|
|
string |
Daftar domain pencarian DNS. |
svc.local.kubenetes |
|
| NtpServers |
array |
Server NTP. |
|
|
string |
Server NTP. |
ntp.cloud.aliyuncs.com |
|
| LifecycleState |
string |
Status konfigurasi penskalaan dalam grup penskalaan. Nilai yang valid:
|
Active |
| CostOptimization |
boolean |
Menunjukkan apakah optimasi biaya diaktifkan. Nilai yang valid:
|
false |
| InstanceFamilyLevel |
string |
Tingkat keluarga instans, digunakan untuk memfilter rentang tipe instans yang memenuhi persyaratan. Parameter ini hanya berlaku saat
|
EnterpriseLevel |
| InstanceTypes |
array |
Tipe instans ECS yang ditentukan. Beberapa tipe didukung (hingga 5). |
|
|
string |
Tipe instans ECS yang ditentukan. Anda dapat menentukan beberapa tipe (hingga 5). Untuk informasi lebih lanjut, lihat Membuat instans dengan tipe instans ECS yang ditentukan. |
ecs.g6.large |
|
| DataCacheBucket |
string |
Bucket cache data. |
default |
| DataCachePL |
string |
Tingkat performa cloud disk yang digunakan untuk cache data. Kami merekomendasikan Anda menggunakan cloud disk ESSD. Nilai yang valid untuk tingkat performa ESSD:
Catatan
Untuk informasi lebih lanjut tentang cloud disk ESSD, lihat Cloud disk ESSD. |
PL1 |
| DataCacheProvisionedIops |
integer |
IOPS baca/tulis yang disediakan dari cloud disk ESSD AutoPL saat cache data menggunakan cloud disk ESSD AutoPL. Nilai yang valid: 0 hingga min{50.000, 1.000 * kapasitas - performa dasar}, di mana performa dasar = min{1.800 + 50 * kapasitas, 50.000}. Catatan
Untuk informasi lebih lanjut tentang cloud disk ESSD AutoPL, lihat Cloud disk ESSD AutoPL. |
40000 |
| DataCacheBurstingEnabled |
boolean |
Menunjukkan apakah burst (peningkatan performa) diaktifkan saat cache data menggunakan cloud disk ESSD AutoPL. Nilai yang valid:
Nilai default: false. Catatan
Untuk informasi lebih lanjut tentang cloud disk ESSD AutoPL, lihat Cloud disk ESSD AutoPL. |
false |
| EipPublicIpAddressPoolId |
string |
ID pool alamat IP. |
pippool-bp187arfugi543y1s**** |
| EipCommonBandwidthPackage |
string |
Paket bandwidth bersama yang ada untuk diikat. |
cbwp-bp1rxai1z4b1an454xl8m |
| EipISP |
string |
Tipe jalur EIP. Nilai yang valid:
|
BGP |
| ComputeCategory |
array |
Kategori komputasi. Jika diatur ke economy, ini menunjukkan kueri instans dengan spesifikasi ekonomis. |
|
|
string |
Kategori komputasi yang ditentukan. |
economy |
|
| Output |
string |
Konten output YAML dari konfigurasi penskalaan. |
apiVersion: apps/v1 kind: Deployment metadata: name: nginx-deployment labels: app: nginx spec: replicas: 3 selector: matchLabels: app: nginx template: metadata: labels: app: nginx annotations: k8s.aliyun.com/eip-bandwidth: 10 k8s.aliyun.com/eci-with-eip: true spec: containers: - name: nginx image: nginx:1.14.2 ports: - containerPort: 80 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "6EF9BFEE-FE07-4627-B8FB-14326FB9****",
"ScalingConfiguration": {
"CreationTime": "2023-05-10T02:39:15Z",
"ScalingConfigurationName": "scalingconfi****",
"SecurityGroupId": "sg-bp18kz60mefs****",
"ActiveDeadlineSeconds": 60,
"SpotStrategy": "NoSpot",
"AutoCreateEip": true,
"ScalingGroupId": "asg-bp1frlu04fq4zv65b1bh",
"EphemeralStorage": 20,
"Ipv6AddressCount": 1,
"Description": "This is an example.",
"EipBandwidth": 5,
"ImageSnapshotId": "imc-2zebxkiifuyzzlhl****",
"Memory": 4,
"RestartPolicy": "Always",
"SpotPriceLimit": 0.025,
"IngressBandwidth": 1024000,
"CpuOptionsThreadsPerCore": 2,
"TerminationGracePeriodSeconds": 60,
"LoadBalancerWeight": 50,
"DnsPolicy": "Default",
"HostName": "hostname",
"EgressBandwidth": 10485760,
"RegionId": "cn-shanghai",
"RamRoleName": "ram:PassRole\n",
"Cpu": 2,
"AutoMatchImageCache": true,
"ResourceGroupId": "rg-acfmwozpmmksakq",
"ContainerGroupName": "test",
"ScalingConfigurationId": "asc-2zec39vg84usxdocme6a",
"CpuOptionsCore": 2,
"SlsEnable": false,
"Containers": [
{
"ReadinessProbeHttpGetPath": "/usr/local",
"ReadinessProbeSuccessThreshold": 1,
"LivenessProbePeriodSeconds": 5,
"LivenessProbeTcpSocketPort": 80,
"LivenessProbeHttpGetScheme": "HTTP",
"WorkingDir": "/usr/local/nginx",
"Tty": true,
"LivenessProbeHttpGetPort": 8080,
"Gpu": 2,
"ReadinessProbeInitialDelaySeconds": 5,
"Stdin": true,
"Memory": 2,
"Name": "nginx",
"SecurityContextReadOnlyRootFilesystem": true,
"LivenessProbeHttpGetPath": "/usr/nginx/\n",
"Image": "registry-vpc.aliyuncs.com/eci_open/alpine:3.5",
"ReadinessProbeTcpSocketPort": 80,
"ReadinessProbeHttpGetScheme": "HTTP",
"ReadinessProbeHttpGetPort": 80,
"LivenessProbeSuccessThreshold": 1,
"ReadinessProbeTimeoutSeconds": 5,
"SecurityContextRunAsUser": 1000,
"LivenessProbeInitialDelaySeconds": 10,
"ReadinessProbePeriodSeconds": 5,
"ImagePullPolicy": "Always",
"StdinOnce": true,
"Cpu": 2,
"LivenessProbeTimeoutSeconds": 10,
"ReadinessProbeFailureThreshold": 3,
"LivenessProbeFailureThreshold": 3,
"Ports": [
{
"Port": 8083,
"Protocol": "TCP"
}
],
"VolumeMounts": [
{
"ReadOnly": true,
"SubPath": "data2/\n",
"Name": "default-volume1",
"MountPropagation": "None",
"MountPath": "/pod/data"
}
],
"EnvironmentVars": [
{
"Key": "PATH",
"Value": "/usr/bin/\n",
"FieldRefFieldPath": "fieldPath"
}
],
"Commands": [
"sleep"
],
"LivenessProbeExecCommands": [
"cat /tmp/healthy"
],
"Args": [
"100"
],
"ReadinessProbeExecCommands": [
"cat /tmp/healthy\n"
],
"SecurityContextCapabilityAdds": [
"NET_ADMIN"
],
"LifecyclePostStartHandlerHttpGetHost": "10.0.XX.XX",
"LifecyclePostStartHandlerHttpGetPort": 80,
"LifecyclePostStartHandlerHttpGetPath": "/healthyz\n",
"LifecyclePostStartHandlerHttpGetScheme": "HTTP",
"LifecyclePostStartHandlerExecs": [
"[\"/bin/sh\", \"-c\",\"echo Hello from the preStop handler > /usr/share/message\"]"
],
"LifecyclePostStartHandlerTcpSocketHost": "10.0.XX.XX\n",
"LifecyclePostStartHandlerTcpSocketPort": 80,
"LifecyclePreStopHandlerHttpGetHost": "10.0.XX.XX\n",
"LifecyclePreStopHandlerHttpGetPort": 80,
"LifecyclePreStopHandlerHttpGetPath": "/healthyz",
"LifecyclePreStopHandlerHttpGetScheme": "HTTP",
"LifecyclePreStopHandlerExecs": [
"[\"/bin/sh\", \"-c\",\"echo Hello from the preStop handler > /usr/share/message\"]"
],
"LifecyclePreStopHandlerTcpSocketHost": "10.0.XX.XX",
"LifecyclePreStopHandlerTcpSocketPort": 80
}
],
"InitContainers": [
{
"SecurityContextReadOnlyRootFilesystem": true,
"ImagePullPolicy": "Always",
"WorkingDir": "/www",
"Cpu": 0.5,
"Image": "registry-vpc.cn-hongkong.aliyuncs.com/eci_open/nginx:alpine",
"Gpu": 1,
"SecurityContextRunAsUser": "1000",
"Memory": 1,
"Name": "test-init\n",
"InitContainerEnvironmentVars": [
{
"Key": "PATH",
"Value": "/usr/local/bin\n",
"FieldRefFieldPath": "path"
}
],
"InitContainerPorts": [
{
"Port": 1024,
"Protocol": "UDP"
}
],
"InitContainerVolumeMounts": [
{
"ReadOnly": false,
"SubPath": "/usr/sub/",
"Name": "test-empty\n",
"MountPropagation": "None",
"MountPath": "/usr/share/\n"
}
],
"SecurityContextCapabilityAdds": [
"NET_ADMIN"
],
"InitContainerCommands": [
"sleep"
],
"InitContainerArgs": [
"10"
]
}
],
"Tags": [
{
"Key": "version",
"Value": "3"
}
],
"Volumes": [
{
"Type": "EmptyDirVolume",
"DiskVolumeDiskId": "d-xx",
"DiskVolumeFsType": "xfs",
"EmptyDirVolumeMedium": "memory",
"NFSVolumePath": "/share\n",
"DiskVolumeDiskSize": 15,
"NFSVolumeReadOnly": false,
"FlexVolumeFsType": "ext4",
"ConfigFileVolumeDefaultMode": 644,
"FlexVolumeDriver": "flexvolume",
"FlexVolumeOptions": "{\"volumeId\":\"d-2zehdahrwoa7srg****\",\"performanceLevel\": \"PL2\"}\n",
"NFSVolumeServer": "3f9cd4a596-naw76.cn-shanghai.nas.aliyuncs.com\n",
"Name": "default-volume1\n",
"ConfigFileVolumeConfigFileToPaths": [
{
"Path": "/usr/bin/\n",
"Mode": 644,
"Content": "bGl1bWk=\n"
}
],
"EmptyDirVolumeSizeLimit": "256Mi",
"HostPathVolumeType": "Directory",
"HostPathVolumePath": "/pod/data\n"
}
],
"ImageRegistryCredentials": [
{
"Password": "yourpaasword",
"Server": "registry-vpc.cn-shanghai.aliyuncs.com\n",
"UserName": "yourusername"
}
],
"DnsConfigOptions": [
{
"Name": "name",
"Value": "value"
}
],
"HostAliases": [
{
"Ip": "192.0.XX.XX\n",
"Hostnames": [
"['hehe.com', 'haha.com']\n"
]
}
],
"SecurityContextSysCtls": [
{
"Name": "kernel.msgmax\n",
"Value": "65536"
}
],
"AcrRegistryInfos": [
{
"InstanceId": "cri-nwj395hgf6f3****\n",
"InstanceName": "acr-test\n",
"RegionId": "cn-hangzhou\n",
"Domains": [
"*****-****-registry.cn-beijing.cr.aliyuncs.com\n"
]
}
],
"DnsConfigNameServers": [
"172.10.*.**\n"
],
"DnsConfigSearches": [
"svc.local.kubenetes\n"
],
"NtpServers": [
"ntp.cloud.aliyuncs.com\n"
],
"LifecycleState": "Active",
"CostOptimization": false,
"InstanceFamilyLevel": "EnterpriseLevel",
"InstanceTypes": [
"ecs.g6.large\n"
],
"DataCacheBucket": "default",
"DataCachePL": "PL1\n",
"DataCacheProvisionedIops": 40000,
"DataCacheBurstingEnabled": false,
"EipPublicIpAddressPoolId": "pippool-bp187arfugi543y1s****",
"EipCommonBandwidthPackage": "cbwp-bp1rxai1z4b1an454xl8m",
"EipISP": "BGP",
"ComputeCategory": [
"economy"
]
},
"Output": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n name: nginx-deployment\n labels:\n app: nginx\n spec:\n replicas: 3\n selector:\n matchLabels:\n app: nginx\n template:\n metadata:\n labels:\n app: nginx\n annotations:\n k8s.aliyun.com/eip-bandwidth: 10\n k8s.aliyun.com/eci-with-eip: true\n spec:\n containers:\n - name: nginx\n image: nginx:1.14.2\n ports:\n - containerPort: 80"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 403 | Forbidden.RiskControl | Forbidden.RiskControl |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.