public static final class InsertK8sApplicationRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
InsertK8sApplicationRequest.Builder |
annotations(String annotations)
The annotation of an application pod.
|
InsertK8sApplicationRequest.Builder |
appConfig(String appConfig)
The application configuration when the application template is used.
|
InsertK8sApplicationRequest.Builder |
applicationDescription(String applicationDescription)
The description of the application.
|
InsertK8sApplicationRequest.Builder |
appName(String appName)
The name of the application.
|
InsertK8sApplicationRequest.Builder |
appTemplateName(String appTemplateName)
The name of the template used to create the application.
|
InsertK8sApplicationRequest |
build() |
InsertK8sApplicationRequest.Builder |
buildPackId(String buildPackId)
The version of `EDAS Container`.
|
InsertK8sApplicationRequest.Builder |
clusterId(String clusterId)
The ID of the cluster.
|
InsertK8sApplicationRequest.Builder |
command(String command)
The application startup command.
|
InsertK8sApplicationRequest.Builder |
commandArgs(String commandArgs)
The arguments in the command.
|
InsertK8sApplicationRequest.Builder |
configMountDescs(String configMountDescs)
The configuration for mounting a Kubernetes ConfigMap or Secret to a directory in an elastic container instance.
|
InsertK8sApplicationRequest.Builder |
containerRegistryId(String containerRegistryId)
The ID of the repository used to build the image repository.
|
InsertK8sApplicationRequest.Builder |
csClusterId(String csClusterId)
The ID of the cluster.
|
InsertK8sApplicationRequest.Builder |
customAffinity(String customAffinity)
The custom affinity.
|
InsertK8sApplicationRequest.Builder |
customTolerations(String customTolerations)
The custom tolerances.
|
InsertK8sApplicationRequest.Builder |
deployAcrossNodes(String deployAcrossNodes)
Specifies whether to distribute application instances across nodes.
|
InsertK8sApplicationRequest.Builder |
deployAcrossZones(String deployAcrossZones)
Specifies whether to distribute application instances across zones.
|
InsertK8sApplicationRequest.Builder |
edasContainerVersion(String edasContainerVersion)
The version of `EDAS Container` on which the deployment package of the application depends.
|
InsertK8sApplicationRequest.Builder |
emptyDirs(String emptyDirs)
The configuration for mounting a Kubernetes emptyDir volume to a directory in an elastic container instance.
|
InsertK8sApplicationRequest.Builder |
enableAhas(Boolean enableAhas)
Specifies whether to enable access to Application High Availability Service (AHAS).
|
InsertK8sApplicationRequest.Builder |
enableAsm(Boolean enableAsm)
Specifies whether to activate Alibaba Cloud Service Mesh (ASM).
|
InsertK8sApplicationRequest.Builder |
enableEmptyPushReject(Boolean enableEmptyPushReject)
Specifies whether to enable the empty list protection feature.
|
InsertK8sApplicationRequest.Builder |
enableLosslessRule(Boolean enableLosslessRule)
Specifies whether to enable graceful start rules.
|
InsertK8sApplicationRequest.Builder |
envFroms(String envFroms)
The Kubernetes environment variables that are configured in EnvFrom mode.
|
InsertK8sApplicationRequest.Builder |
envs(String envs)
The environment variables that are used to deploy the application.
|
InsertK8sApplicationRequest.Builder |
imagePlatforms(String imagePlatforms)
ImagePlatforms.
|
InsertK8sApplicationRequest.Builder |
imageUrl(String imageUrl)
The URL of the image.
|
InsertK8sApplicationRequest.Builder |
initContainers(String initContainers)
InitContainers.
|
InsertK8sApplicationRequest.Builder |
internetSlbId(String internetSlbId)
The ID of the Internet-facing SLB instance.
|
InsertK8sApplicationRequest.Builder |
internetSlbPort(Integer internetSlbPort)
The frontend port of the Internet-facing SLB instance.
|
InsertK8sApplicationRequest.Builder |
internetSlbProtocol(String internetSlbProtocol)
The protocol used by the Internet-facing SLB instance.
|
InsertK8sApplicationRequest.Builder |
internetTargetPort(Integer internetTargetPort)
The backend port of the internal-facing SLB instance.
|
InsertK8sApplicationRequest.Builder |
intranetSlbId(String intranetSlbId)
The ID of the internal-facing SLB instance.
|
InsertK8sApplicationRequest.Builder |
intranetSlbPort(Integer intranetSlbPort)
The frontend port of the internal-facing SLB instance.
|
InsertK8sApplicationRequest.Builder |
intranetSlbProtocol(String intranetSlbProtocol)
The protocol used by the internal-facing SLB instance.
|
InsertK8sApplicationRequest.Builder |
intranetTargetPort(Integer intranetTargetPort)
The backend port of the internal-facing Server Load Balancer (SLB) instance.
|
InsertK8sApplicationRequest.Builder |
isMultilingualApp(Boolean isMultilingualApp)
Specifies whether the application is a multi-language application.
|
InsertK8sApplicationRequest.Builder |
javaStartUpConfig(String javaStartUpConfig)
The configuration of Java startup parameters for a Java application.
|
InsertK8sApplicationRequest.Builder |
JDK(String JDK)
The version of the Java Development Kit (JDK) on which the deployment package of the application depends.
|
InsertK8sApplicationRequest.Builder |
labels(String labels)
The label of an application pod.
|
InsertK8sApplicationRequest.Builder |
limitCpu(Integer limitCpu)
The maximum number of CPU cores allowed for each application instance when the application is running.
|
InsertK8sApplicationRequest.Builder |
limitEphemeralStorage(Integer limitEphemeralStorage)
The maximum size of space required by ephemeral storage.
|
InsertK8sApplicationRequest.Builder |
limitmCpu(Integer limitmCpu)
The maximum number of CPU cores allowed for each application instance when the application is running.
|
InsertK8sApplicationRequest.Builder |
limitMem(Integer limitMem)
The maximum size of memory allowed for each application instance when the application is running.
|
InsertK8sApplicationRequest.Builder |
liveness(String liveness)
The configuration for the liveness check on the container.
|
InsertK8sApplicationRequest.Builder |
localVolume(String localVolume)
The configurations that are used when the host files are mounted to the container on which the application is running.
|
InsertK8sApplicationRequest.Builder |
logicalRegionId(String logicalRegionId)
The ID of the EDAS namespace.
|
InsertK8sApplicationRequest.Builder |
losslessRuleAligned(Boolean losslessRuleAligned)
Specifies whether to enable the graceful rolling deployment mode and ensure that the service is registered before the readiness check.
|
InsertK8sApplicationRequest.Builder |
losslessRuleDelayTime(Integer losslessRuleDelayTime)
The delay of service registration.
|
InsertK8sApplicationRequest.Builder |
losslessRuleFuncType(Integer losslessRuleFuncType)
The number of prefetching curves.
|
InsertK8sApplicationRequest.Builder |
losslessRuleRelated(Boolean losslessRuleRelated)
Specifies whether to enable the graceful rolling deployment mode and ensure that the service prefetching is complete before the readiness check.
|
InsertK8sApplicationRequest.Builder |
losslessRuleWarmupTime(Integer losslessRuleWarmupTime)
The service prefetching duration.
|
InsertK8sApplicationRequest.Builder |
mountDescs(String mountDescs)
The description of the NAS mounting configuration.
|
InsertK8sApplicationRequest.Builder |
namespace(String namespace)
The namespace of the Kubernetes cluster.
|
InsertK8sApplicationRequest.Builder |
nasId(String nasId)
The ID of the Network Attached Storage (NAS) file system that you want to mount to the application.
|
InsertK8sApplicationRequest.Builder |
packageType(String packageType)
The type of the deployment package.
|
InsertK8sApplicationRequest.Builder |
packageUrl(String packageUrl)
The URL of the deployment package.
|
InsertK8sApplicationRequest.Builder |
packageVersion(String packageVersion)
The version of the deployment package.
|
InsertK8sApplicationRequest.Builder |
postStart(String postStart)
The post-start script.
|
InsertK8sApplicationRequest.Builder |
preStop(String preStop)
The pre-stop script.
|
InsertK8sApplicationRequest.Builder |
pvcMountDescs(String pvcMountDescs)
The configuration for mounting a Kubernetes PersistentVolumeClaim (PVC) volume to a directory in an elastic container instance.
|
InsertK8sApplicationRequest.Builder |
readiness(String readiness)
The configuration for the readiness check on the container.
|
InsertK8sApplicationRequest.Builder |
replicas(Integer replicas)
The number of application instances.
|
InsertK8sApplicationRequest.Builder |
repoId(String repoId)
The ID of the image repository.
|
InsertK8sApplicationRequest.Builder |
requestsCpu(Integer requestsCpu)
The maximum number of CPU cores allowed for each application instance when the application is created.
|
InsertK8sApplicationRequest.Builder |
requestsEphemeralStorage(Integer requestsEphemeralStorage)
The minimum size of space required by ephemeral storage.
|
InsertK8sApplicationRequest.Builder |
requestsmCpu(Integer requestsmCpu)
The maximum number of CPU cores allowed for each application instance when the application is created.
|
InsertK8sApplicationRequest.Builder |
requestsMem(Integer requestsMem)
The maximum size of memory allowed for each application instance when the application is created.
|
InsertK8sApplicationRequest.Builder |
resourceGroupId(String resourceGroupId)
The ID of the resource group.
|
InsertK8sApplicationRequest.Builder |
runtimeClassName(String runtimeClassName)
The type of the container runtime.
|
InsertK8sApplicationRequest.Builder |
secretName(String secretName)
The name of the credential that is used to pull the images specified by the user.
|
InsertK8sApplicationRequest.Builder |
serviceConfigs(String serviceConfigs)
The configurations of services in a Kubernetes cluster.
|
InsertK8sApplicationRequest.Builder |
sidecars(String sidecars)
Sidecars.
|
InsertK8sApplicationRequest.Builder |
slsConfigs(String slsConfigs)
The Logstore configuration.
|
InsertK8sApplicationRequest.Builder |
startup(String startup)
Startup.
|
InsertK8sApplicationRequest.Builder |
storageType(String storageType)
The storage type of the NAS file system.
|
InsertK8sApplicationRequest.Builder |
terminateGracePeriod(Integer terminateGracePeriod)
TerminateGracePeriod.
|
InsertK8sApplicationRequest.Builder |
timeout(Integer timeout)
The timeout period of the change process.
|
InsertK8sApplicationRequest.Builder |
uriEncoding(String uriEncoding)
The URI encoding scheme.
|
InsertK8sApplicationRequest.Builder |
useBodyEncoding(Boolean useBodyEncoding)
Specifies whether to use the encoding scheme specified in the request body for URI query parameters.
|
InsertK8sApplicationRequest.Builder |
userBaseImageUrl(String userBaseImageUrl)
UserBaseImageUrl.
|
InsertK8sApplicationRequest.Builder |
webContainer(String webContainer)
The version of the Tomcat container on which the deployment package of the application depends.
|
InsertK8sApplicationRequest.Builder |
webContainerConfig(String webContainerConfig)
The configuration of the Tomcat container.
|
InsertK8sApplicationRequest.Builder |
workloadType(String workloadType)
WorkloadType.
|
public InsertK8sApplicationRequest.Builder annotations(String annotations)
public InsertK8sApplicationRequest.Builder appConfig(String appConfig)
public InsertK8sApplicationRequest.Builder appName(String appName)
public InsertK8sApplicationRequest.Builder appTemplateName(String appTemplateName)
public InsertK8sApplicationRequest.Builder applicationDescription(String applicationDescription)
public InsertK8sApplicationRequest.Builder buildPackId(String buildPackId)
public InsertK8sApplicationRequest.Builder clusterId(String clusterId)
public InsertK8sApplicationRequest.Builder command(String command)
public InsertK8sApplicationRequest.Builder commandArgs(String commandArgs)
public InsertK8sApplicationRequest.Builder configMountDescs(String configMountDescs)
* name: the name of the Kubernetes ConfigMap or Secret. * type: the type of the API object that you want to mount. You can mount a Kubernetes ConfigMap or Secret. * mountPath: the mount path. The mount path must be an absolute path that starts with a forward slash (/).
public InsertK8sApplicationRequest.Builder containerRegistryId(String containerRegistryId)
public InsertK8sApplicationRequest.Builder csClusterId(String csClusterId)
public InsertK8sApplicationRequest.Builder customAffinity(String customAffinity)
public InsertK8sApplicationRequest.Builder customTolerations(String customTolerations)
public InsertK8sApplicationRequest.Builder deployAcrossNodes(String deployAcrossNodes)
public InsertK8sApplicationRequest.Builder deployAcrossZones(String deployAcrossZones)
public InsertK8sApplicationRequest.Builder edasContainerVersion(String edasContainerVersion)
> This parameter is unavailable if you deploy applications by using images.
public InsertK8sApplicationRequest.Builder emptyDirs(String emptyDirs)
* mountPath: The mount path in the container. This parameter is required. * readOnly: (Optional) The mount mode. Value true indicates the read-only mode. Value false indicates the read and write mode. Default value: false. * subPathExpr: (Optional) The regular expression that is used to match the subdirectory.
public InsertK8sApplicationRequest.Builder enableAhas(Boolean enableAhas)
* true: enables access to AHAS. * false: does not enable access to AHAS.
public InsertK8sApplicationRequest.Builder enableAsm(Boolean enableAsm)
public InsertK8sApplicationRequest.Builder enableEmptyPushReject(Boolean enableEmptyPushReject)
* true: enables the empty list protection feature. * false: disables the empty list protection feature.
public InsertK8sApplicationRequest.Builder enableLosslessRule(Boolean enableLosslessRule)
* true: enables graceful start rules. * false: disables graceful start rules.
public InsertK8sApplicationRequest.Builder envFroms(String envFroms)
The following parameters are included in the configuration: * configMapRef: the ConfigMap that is referenced. The following parameter is contained: * name: the name of the ConfigMap. * secretRef: the Secret that is referenced. The following parameter is contained: * name: the name of the Secret.
public InsertK8sApplicationRequest.Builder envs(String envs)
`{"name":"x", "value": "y"}` Specify Kubernetes ConfigMap environment variables in the following format to reference values from ConfigMaps: `{ "name": "x2", "valueFrom": { "configMapKeyRef": { "name": "my-config", "key": "y2" } } }` Specify Kubernetes Secret environment variables in the following format to reference values from Secrets: `{ "name": "x3", "valueFrom": { "secretKeyRef": { "name": "my-secret", "key": "y3" } } }` > If you want to cancel this configuration, set this parameter to an empty JSON array in the format of "\[]".
public InsertK8sApplicationRequest.Builder imagePlatforms(String imagePlatforms)
public InsertK8sApplicationRequest.Builder imageUrl(String imageUrl)
public InsertK8sApplicationRequest.Builder initContainers(String initContainers)
public InsertK8sApplicationRequest.Builder internetSlbId(String internetSlbId)
public InsertK8sApplicationRequest.Builder internetSlbPort(Integer internetSlbPort)
public InsertK8sApplicationRequest.Builder internetSlbProtocol(String internetSlbProtocol)
public InsertK8sApplicationRequest.Builder internetTargetPort(Integer internetTargetPort)
public InsertK8sApplicationRequest.Builder intranetSlbId(String intranetSlbId)
public InsertK8sApplicationRequest.Builder intranetSlbPort(Integer intranetSlbPort)
public InsertK8sApplicationRequest.Builder intranetSlbProtocol(String intranetSlbProtocol)
public InsertK8sApplicationRequest.Builder intranetTargetPort(Integer intranetTargetPort)
public InsertK8sApplicationRequest.Builder isMultilingualApp(Boolean isMultilingualApp)
public InsertK8sApplicationRequest.Builder JDK(String JDK)
public InsertK8sApplicationRequest.Builder javaStartUpConfig(String javaStartUpConfig)
* InitialHeapSize: the initial size of the heap memory. * MaxHeapSize: the maximum size of the heap memory. * CustomParams: the custom parameters, such as JVM -D parameters. * Other parameters: You can view the JSON structure submitted by the frontend.
public InsertK8sApplicationRequest.Builder labels(String labels)
public InsertK8sApplicationRequest.Builder limitCpu(Integer limitCpu)
public InsertK8sApplicationRequest.Builder limitEphemeralStorage(Integer limitEphemeralStorage)
public InsertK8sApplicationRequest.Builder limitMem(Integer limitMem)
public InsertK8sApplicationRequest.Builder limitmCpu(Integer limitmCpu)
public InsertK8sApplicationRequest.Builder liveness(String liveness)
If you want to cancel this configuration, leave the parameter value empty by entering `""` or `{}`. If you do not specify this parameter, this configuration is ignored.
public InsertK8sApplicationRequest.Builder localVolume(String localVolume)
* `nodePath`: the host path. * `mountPath`: the path in the container. * `type`: the mounting type.
public InsertK8sApplicationRequest.Builder logicalRegionId(String logicalRegionId)
public InsertK8sApplicationRequest.Builder losslessRuleAligned(Boolean losslessRuleAligned)
* true: provides port 55199 and the /health path for the health check in a non-intrusive manner. When the service is registered, the system returns HTTP 200 status code. Otherwise, the system returns HTTP 500 status code. ** **Note**If you set both the `LosslessRuleRelated` parameter and this parameter to `true`, the operation checks whether the service prefetching is complete. * false: does not check whether the service is registered.
public InsertK8sApplicationRequest.Builder losslessRuleDelayTime(Integer losslessRuleDelayTime)
public InsertK8sApplicationRequest.Builder losslessRuleFuncType(Integer losslessRuleFuncType)
public InsertK8sApplicationRequest.Builder losslessRuleRelated(Boolean losslessRuleRelated)
* true: provides port 55199 and the /health path for the health check in a non-intrusive manner. When the service prefetching is complete, the system returns HTTP 200 status code. Otherwise, the system returns HTTP 500 status code. * false: does not check whether the service prefetching is complete.
public InsertK8sApplicationRequest.Builder losslessRuleWarmupTime(Integer losslessRuleWarmupTime)
public InsertK8sApplicationRequest.Builder mountDescs(String mountDescs)
public InsertK8sApplicationRequest.Builder namespace(String namespace)
public InsertK8sApplicationRequest.Builder nasId(String nasId)
public InsertK8sApplicationRequest.Builder packageType(String packageType)
public InsertK8sApplicationRequest.Builder packageUrl(String packageUrl)
> The version of EDAS SDK for Java or Python must be V2.44.0 or later.
public InsertK8sApplicationRequest.Builder packageVersion(String packageVersion)
> The version of EDAS SDK for Java or Python must be V2.44.0 or later.
public InsertK8sApplicationRequest.Builder postStart(String postStart)
If you want to cancel this configuration, leave this parameter empty by setting it to `""` or `{}`. If you do not specify this parameter, this configuration is ignored.
public InsertK8sApplicationRequest.Builder preStop(String preStop)
If you want to cancel this configuration, leave this parameter empty by setting it to `""` or `{}`. If you do not specify this parameter, this configuration is ignored.
public InsertK8sApplicationRequest.Builder pvcMountDescs(String pvcMountDescs)
* pvcName: the name of the PVC volume. Make sure that the PVC volume is an existing volume and is in the Bound state. * mountPaths: the directory to which you want to mount the PVC volume. You can configure multiple directories. You can set the following two parameters for each mount directory: * mountPath: the mount path. The mount path must be an absolute path that starts with a forward slash (/). * readOnly: the mount mode. Value true indicates the read-only mode. Value false indicates the read and write mode. Default value: false.
public InsertK8sApplicationRequest.Builder readiness(String readiness)
If you want to cancel this configuration, leave the parameter value empty by entering `""` or `{}`. If you do not specify this parameter, this configuration is ignored.
public InsertK8sApplicationRequest.Builder replicas(Integer replicas)
public InsertK8sApplicationRequest.Builder repoId(String repoId)
public InsertK8sApplicationRequest.Builder requestsCpu(Integer requestsCpu)
public InsertK8sApplicationRequest.Builder requestsEphemeralStorage(Integer requestsEphemeralStorage)
public InsertK8sApplicationRequest.Builder requestsMem(Integer requestsMem)
public InsertK8sApplicationRequest.Builder requestsmCpu(Integer requestsmCpu)
public InsertK8sApplicationRequest.Builder resourceGroupId(String resourceGroupId)
public InsertK8sApplicationRequest.Builder runtimeClassName(String runtimeClassName)
public InsertK8sApplicationRequest.Builder secretName(String secretName)
public InsertK8sApplicationRequest.Builder serviceConfigs(String serviceConfigs)
public InsertK8sApplicationRequest.Builder sidecars(String sidecars)
public InsertK8sApplicationRequest.Builder slsConfigs(String slsConfigs)
* The following parameters are included in the configuration: * type: the collection type. Set this parameter to file to specify the file type. Set this parameter to stdout to specify the standard output type. * logstore: the name of the Logstore. Make sure that the name of the Logstore is unique in the cluster. The name must comply with the following rules: * The name can contain only lowercase letters, digits, hyphens (-), and underscores (\_). * The name must start and end with a lowercase letter or a digit. * The name must be 3 to 63 characters in length. If you leave this parameter empty, the system automatically generates a name. * LogDir: If the standard output type is used, the collection path is stdout.log. If the file type is used, the collection path is the path of the collected file. Wildcards (\*) are supported. The collection path must match the following regular expression: `^/(.+)/(.*)^/$`.
public InsertK8sApplicationRequest.Builder startup(String startup)
public InsertK8sApplicationRequest.Builder storageType(String storageType)
* Valid values for General-purpose NAS file systems: Capacity and Performance. * Valid values for Extreme NAS file systems: Standard and Advance. You can set this parameter only to Performance.
public InsertK8sApplicationRequest.Builder terminateGracePeriod(Integer terminateGracePeriod)
public InsertK8sApplicationRequest.Builder timeout(Integer timeout)
public InsertK8sApplicationRequest.Builder uriEncoding(String uriEncoding)
> If you do not specify this parameter in the application configurations, the default URI encoding scheme in the Tomcat container is applied.
public InsertK8sApplicationRequest.Builder useBodyEncoding(Boolean useBodyEncoding)
> If this parameter is not specified in application configuration, the default value false is applied.
public InsertK8sApplicationRequest.Builder userBaseImageUrl(String userBaseImageUrl)
public InsertK8sApplicationRequest.Builder webContainer(String webContainer)
public InsertK8sApplicationRequest.Builder webContainerConfig(String webContainerConfig)
* useDefaultConfig: specifies whether to use the default configuration. Value true indicates that the default configuration is used. Value false indicates that the custom configuration is used. If the default configuration is used, the following parameters do not take effect: * contextInputType: the type of the access path for the application. Valid values: * war: The access path is the name of the WAR package. You do not need to specify a custom path. * root: The access path for the application is `/`. You do not need to specify a custom path. * custom: If you select this option, you must specify a custom path for the contextPath parameter. * contextPath: the custom access path for the application. This parameter is required only when you set the contextInputType parameter to custom. * httpPort: the port number. The port number ranges from 1024 to 65535. Though the admin permissions are configured for the container, the root permissions are required to perform operations on ports whose number is less than 1024. Enter a value that ranges from 1024 to 65535 because the container has only the admin permissions. If you do not configure this parameter, the default port number 8080 is used. * maxThreads: the maximum number of connections in the connection pool. Default value: 400. ** **Note**This parameter significantly affects application performance. We recommend that you consult with technical support before you set this parameter. * uriEncoding: the URI encoding scheme in the Tomcat container. Valid values: UTF-8, ISO-8859-1, GBK, and GB2312. If you do not specify this parameter, the default value ISO-8859-1 is used. * useBodyEncoding: specifies whether to use the encoding scheme specified in the request body for URI query parameters. * useAdvancedServerXml: specifies whether to use advanced configurations to customize the server.xml file. If the preceding parameter types and specific parameters cannot meet your requirements, you can use advanced configurations to customize the server.xml file of Tomcat. * serverXml: the content of the server.xml file customized by using advanced configurations. This parameter takes effect only when you set the useAdvancedServerXml parameter to true.
public InsertK8sApplicationRequest.Builder workloadType(String workloadType)
public InsertK8sApplicationRequest build()
Copyright © 2023. All rights reserved.