public static final class DeployK8sApplicationRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
DeployK8sApplicationRequest.Builder |
annotations(String annotations)
The annotation of an application pod.
|
DeployK8sApplicationRequest.Builder |
appId(String appId)
The ID of the application.
|
DeployK8sApplicationRequest.Builder |
args(String args)
The argument array in the container start-up command.
|
DeployK8sApplicationRequest.Builder |
batchTimeout(Integer batchTimeout)
The timeout period for an at-a-time release.
|
DeployK8sApplicationRequest.Builder |
batchWaitTime(Integer batchWaitTime)
The minimum time interval for the phased release of pods.
|
DeployK8sApplicationRequest |
build() |
DeployK8sApplicationRequest.Builder |
buildPackId(String buildPackId)
The build package number of EDAS Container.
|
DeployK8sApplicationRequest.Builder |
canaryRuleId(String canaryRuleId)
CanaryRuleId.
|
DeployK8sApplicationRequest.Builder |
changeOrderDesc(String changeOrderDesc)
The description of the change process.
|
DeployK8sApplicationRequest.Builder |
command(String command)
The commands that you run to start the container.
|
DeployK8sApplicationRequest.Builder |
configMountDescs(String configMountDescs)
The configuration for mounting a Kubernetes ConfigMap or Secret to a directory in an elastic container instance.
|
DeployK8sApplicationRequest.Builder |
cpuLimit(Integer cpuLimit)
The maximum number of CPU cores allowed for each application instance when the application is running.
|
DeployK8sApplicationRequest.Builder |
cpuRequest(Integer cpuRequest)
The number of CPU cores requested for each application instance when the application is running.
|
DeployK8sApplicationRequest.Builder |
customAffinity(String customAffinity)
The affinity configuration of the pod.
|
DeployK8sApplicationRequest.Builder |
customTolerations(String customTolerations)
The scheduling tolerance configuration of the pod.
|
DeployK8sApplicationRequest.Builder |
deployAcrossNodes(String deployAcrossNodes)
Specifies whether to distribute application instances to multiple nodes.
|
DeployK8sApplicationRequest.Builder |
deployAcrossZones(String deployAcrossZones)
Specifies whether to distribute application instances across zones.
|
DeployK8sApplicationRequest.Builder |
edasContainerVersion(String edasContainerVersion)
The version of EDAS Container on which the deployment package of the application depends.
|
DeployK8sApplicationRequest.Builder |
emptyDirs(String emptyDirs)
The configuration for mounting a Kubernetes emptyDir volume to a directory in an elastic container instance.
|
DeployK8sApplicationRequest.Builder |
enableAhas(Boolean enableAhas)
Specifies whether to enable access to Application High Availability Service (AHAS).
|
DeployK8sApplicationRequest.Builder |
enableEmptyPushReject(Boolean enableEmptyPushReject)
Specifies whether to enable the empty list protection feature.
|
DeployK8sApplicationRequest.Builder |
enableLosslessRule(Boolean enableLosslessRule)
Specifies whether to enable graceful start rules.
|
DeployK8sApplicationRequest.Builder |
envFroms(String envFroms)
The Kubernetes environment variables that are configured in EnvFrom mode.
|
DeployK8sApplicationRequest.Builder |
envs(String envs)
The environment variables that are used to deploy the application.
|
DeployK8sApplicationRequest.Builder |
image(String image)
The absolute URL of the image.
|
DeployK8sApplicationRequest.Builder |
imagePlatforms(String imagePlatforms)
ImagePlatforms.
|
DeployK8sApplicationRequest.Builder |
imageTag(String imageTag)
The tag of the image.
|
DeployK8sApplicationRequest.Builder |
initContainers(String initContainers)
InitContainers.
|
DeployK8sApplicationRequest.Builder |
javaStartUpConfig(String javaStartUpConfig)
The configuration of Java startup parameters for a Java application.
|
DeployK8sApplicationRequest.Builder |
JDK(String JDK)
The version of the Java Development Kit (JDK) on which the deployment package of the application depends.
|
DeployK8sApplicationRequest.Builder |
labels(String labels)
The label of an application pod.
|
DeployK8sApplicationRequest.Builder |
limitEphemeralStorage(Integer limitEphemeralStorage)
The maximum size of space required by ephemeral storage.
|
DeployK8sApplicationRequest.Builder |
liveness(String liveness)
The configuration for the liveness check on the container.
|
DeployK8sApplicationRequest.Builder |
localVolume(String localVolume)
The configurations that are used when the host files are mounted to the container on which the application is running.
|
DeployK8sApplicationRequest.Builder |
losslessRuleAligned(Boolean losslessRuleAligned)
Specifies whether to enable Graceful Rolling Release and configure Complete Service Registration before Readiness Probing.
|
DeployK8sApplicationRequest.Builder |
losslessRuleDelayTime(Integer losslessRuleDelayTime)
The delay of service registration.
|
DeployK8sApplicationRequest.Builder |
losslessRuleFuncType(Integer losslessRuleFuncType)
The number of prefetching curves.
|
DeployK8sApplicationRequest.Builder |
losslessRuleRelated(Boolean losslessRuleRelated)
Specifies whether to enable Graceful Rolling Release and configure Complete Service Prefetching before Readiness Probing.
|
DeployK8sApplicationRequest.Builder |
losslessRuleWarmupTime(Integer losslessRuleWarmupTime)
The service prefetching duration.
|
DeployK8sApplicationRequest.Builder |
mcpuLimit(Integer mcpuLimit)
The maximum number of CPU cores allowed.
|
DeployK8sApplicationRequest.Builder |
mcpuRequest(Integer mcpuRequest)
The minimum number of CPU cores required.
|
DeployK8sApplicationRequest.Builder |
memoryLimit(Integer memoryLimit)
The maximum size of memory allowed for each application instance when the application is running.
|
DeployK8sApplicationRequest.Builder |
memoryRequest(Integer memoryRequest)
The size of memory requested for each application instance when the application is running.
|
DeployK8sApplicationRequest.Builder |
mountDescs(String mountDescs)
The description of the NAS mounting configuration.
|
DeployK8sApplicationRequest.Builder |
nasId(String nasId)
The ID of the Apsara File Storage NAS (NAS) file system mounted to the container in which the application is running.
|
DeployK8sApplicationRequest.Builder |
packageUrl(String packageUrl)
The URL of the deployment package.
|
DeployK8sApplicationRequest.Builder |
packageVersion(String packageVersion)
The version of the deployment package.
|
DeployK8sApplicationRequest.Builder |
packageVersionId(String packageVersionId)
The version ID of the deployment package.
|
DeployK8sApplicationRequest.Builder |
postStart(String postStart)
The post-start script.
|
DeployK8sApplicationRequest.Builder |
preStop(String preStop)
The pre-stop script.
|
DeployK8sApplicationRequest.Builder |
pvcMountDescs(String pvcMountDescs)
The configuration for mounting a Kubernetes PersistentVolumeClaim (PVC) to a directory in an elastic container instance.
|
DeployK8sApplicationRequest.Builder |
readiness(String readiness)
The configuration for the readiness check on the container.
|
DeployK8sApplicationRequest.Builder |
replicas(Integer replicas)
The number of application instances.
|
DeployK8sApplicationRequest.Builder |
requestsEphemeralStorage(Integer requestsEphemeralStorage)
The minimum size of space required by ephemeral storage.
|
DeployK8sApplicationRequest.Builder |
runtimeClassName(String runtimeClassName)
The type of the container runtime.
|
DeployK8sApplicationRequest.Builder |
sidecars(String sidecars)
Sidecars.
|
DeployK8sApplicationRequest.Builder |
slsConfigs(String slsConfigs)
The Logstore configuration.
|
DeployK8sApplicationRequest.Builder |
startup(String startup)
Startup.
|
DeployK8sApplicationRequest.Builder |
storageType(String storageType)
The storage type of the NAS file system.
|
DeployK8sApplicationRequest.Builder |
terminateGracePeriod(Integer terminateGracePeriod)
TerminateGracePeriod.
|
DeployK8sApplicationRequest.Builder |
trafficControlStrategy(String trafficControlStrategy)
The traffic adjustment policy for a canary release.
|
DeployK8sApplicationRequest.Builder |
updateStrategy(String updateStrategy)
The phased release policy.
|
DeployK8sApplicationRequest.Builder |
uriEncoding(String uriEncoding)
The URI encoding scheme.
|
DeployK8sApplicationRequest.Builder |
useBodyEncoding(Boolean useBodyEncoding)
Specifies whether to use the encoding scheme specified in the request body for URI query parameters.
|
DeployK8sApplicationRequest.Builder |
userBaseImageUrl(String userBaseImageUrl)
UserBaseImageUrl.
|
DeployK8sApplicationRequest.Builder |
volumesStr(String volumesStr)
The data volume.
|
DeployK8sApplicationRequest.Builder |
webContainer(String webContainer)
The version of the Tomcat container on which the deployment package of the application depends.
|
DeployK8sApplicationRequest.Builder |
webContainerConfig(String webContainerConfig)
The Tomcat container configuration.
|
public DeployK8sApplicationRequest.Builder annotations(String annotations)
public DeployK8sApplicationRequest.Builder appId(String appId)
public DeployK8sApplicationRequest.Builder args(String args)
public DeployK8sApplicationRequest.Builder batchTimeout(Integer batchTimeout)
public DeployK8sApplicationRequest.Builder batchWaitTime(Integer batchWaitTime)
public DeployK8sApplicationRequest.Builder buildPackId(String buildPackId)
* You do not need to set the parameter if you do not need to change the EDAS Container version during the deployment. * Set the parameter if you need to update the EDAS Container version of the application during the deployment. You can query the build package number by using one of the following methods: * Call the ListBuildPack operation. For more information, see [ListBuildPack](~~423222~~). * Obtain the value in the **Build package number** column of the [Release notes for EDAS Container](~~92614~~) topic. For example, `59` indicates `EDAS Container 3.5.8`.
public DeployK8sApplicationRequest.Builder canaryRuleId(String canaryRuleId)
public DeployK8sApplicationRequest.Builder changeOrderDesc(String changeOrderDesc)
public DeployK8sApplicationRequest.Builder command(String command)
> If you want to cancel this configuration, set this parameter to an empty string in the format of `""`.
public DeployK8sApplicationRequest.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 DeployK8sApplicationRequest.Builder cpuLimit(Integer cpuLimit)
public DeployK8sApplicationRequest.Builder cpuRequest(Integer cpuRequest)
> You must set this parameter together with the CpuLimit parameter. Make sure that the value of this parameter does not exceed that of the CpuLimit parameter.
public DeployK8sApplicationRequest.Builder customAffinity(String customAffinity)
public DeployK8sApplicationRequest.Builder customTolerations(String customTolerations)
public DeployK8sApplicationRequest.Builder deployAcrossNodes(String deployAcrossNodes)
public DeployK8sApplicationRequest.Builder deployAcrossZones(String deployAcrossZones)
public DeployK8sApplicationRequest.Builder edasContainerVersion(String edasContainerVersion)
public DeployK8sApplicationRequest.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 DeployK8sApplicationRequest.Builder enableAhas(Boolean enableAhas)
public DeployK8sApplicationRequest.Builder enableEmptyPushReject(Boolean enableEmptyPushReject)
* true: enables the empty list protection feature. * false: disables the empty list protection feature.
public DeployK8sApplicationRequest.Builder enableLosslessRule(Boolean enableLosslessRule)
* true: enables graceful start rules. * false: disables graceful start rules.
public DeployK8sApplicationRequest.Builder envFroms(String envFroms)
This parameter contains the following parameters: * 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 DeployK8sApplicationRequest.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, which is in the format of "\[]".
public DeployK8sApplicationRequest.Builder image(String image)
public DeployK8sApplicationRequest.Builder imagePlatforms(String imagePlatforms)
public DeployK8sApplicationRequest.Builder imageTag(String imageTag)
public DeployK8sApplicationRequest.Builder initContainers(String initContainers)
public DeployK8sApplicationRequest.Builder JDK(String JDK)
public DeployK8sApplicationRequest.Builder javaStartUpConfig(String javaStartUpConfig)
public DeployK8sApplicationRequest.Builder labels(String labels)
public DeployK8sApplicationRequest.Builder limitEphemeralStorage(Integer limitEphemeralStorage)
public DeployK8sApplicationRequest.Builder liveness(String liveness)
public DeployK8sApplicationRequest.Builder localVolume(String localVolume)
public DeployK8sApplicationRequest.Builder losslessRuleAligned(Boolean losslessRuleAligned)
* true: If you turn on the switch, the system uses the /health path and provides port 55199 for the health check. The system does not intrude into the application. When the service is registered, the system returns HTTP 200 status code. Otherwise, the system returns HTTP 500 status code. > If you set both the LosslessRuleRelated parameter and this parameter to true, the operation checks whether the service prefetching is complete. * false: If you turn off the switch, the system does not provide a port to check whether the service is registered.
public DeployK8sApplicationRequest.Builder losslessRuleDelayTime(Integer losslessRuleDelayTime)
public DeployK8sApplicationRequest.Builder losslessRuleFuncType(Integer losslessRuleFuncType)
public DeployK8sApplicationRequest.Builder losslessRuleRelated(Boolean losslessRuleRelated)
* true: If you turn on the switch, the system uses the /health path and provides port 55199 for the health check. The system does not intrude into the application. When service prefetching is complete, the system returns HTTP 200 status code. Otherwise, the system returns HTTP 500 status code. * false: If you turn off the switch, the system does not provide a port to check whether service prefetching is complete.
public DeployK8sApplicationRequest.Builder losslessRuleWarmupTime(Integer losslessRuleWarmupTime)
public DeployK8sApplicationRequest.Builder mcpuLimit(Integer mcpuLimit)
public DeployK8sApplicationRequest.Builder mcpuRequest(Integer mcpuRequest)
> You must set this parameter together with the CpuLimit parameter. Make sure that the value of this parameter does not exceed that of the CpuLimit parameter.
public DeployK8sApplicationRequest.Builder memoryLimit(Integer memoryLimit)
public DeployK8sApplicationRequest.Builder memoryRequest(Integer memoryRequest)
> You must set this parameter together with the MemoryLimit parameter. Make sure that the value of this parameter does not exceed that of the MemoryLimit parameter.
public DeployK8sApplicationRequest.Builder mountDescs(String mountDescs)
public DeployK8sApplicationRequest.Builder nasId(String nasId)
public DeployK8sApplicationRequest.Builder packageUrl(String packageUrl)
> The version of EDAS SDK for Java or Python must be V2.44.0 or later.
public DeployK8sApplicationRequest.Builder packageVersion(String packageVersion)
> The version of EDAS SDK for Java or Python must be V2.44.0 or later.
public DeployK8sApplicationRequest.Builder packageVersionId(String packageVersionId)
public DeployK8sApplicationRequest.Builder postStart(String postStart)
public DeployK8sApplicationRequest.Builder preStop(String preStop)
public DeployK8sApplicationRequest.Builder pvcMountDescs(String pvcMountDescs)
* pvcName: the name of the PVC. Make sure that the volume exists and is in the Bound state. * mountPaths: the directory to which you want to mount the PVC. 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 DeployK8sApplicationRequest.Builder readiness(String readiness)
public DeployK8sApplicationRequest.Builder replicas(Integer replicas)
public DeployK8sApplicationRequest.Builder requestsEphemeralStorage(Integer requestsEphemeralStorage)
public DeployK8sApplicationRequest.Builder runtimeClassName(String runtimeClassName)
* runc: standard container runtime * runv: sandboxed container runtime This parameter is applicable only to clusters that use sandboxed containers.
public DeployK8sApplicationRequest.Builder sidecars(String sidecars)
public DeployK8sApplicationRequest.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 DeployK8sApplicationRequest.Builder startup(String startup)
public DeployK8sApplicationRequest.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 DeployK8sApplicationRequest.Builder terminateGracePeriod(Integer terminateGracePeriod)
public DeployK8sApplicationRequest.Builder trafficControlStrategy(String trafficControlStrategy)
public DeployK8sApplicationRequest.Builder updateStrategy(String updateStrategy)
* Example 1: One instance for a canary release + Two subsequent batches + Automatic batching + 1-minute batch interval. `{"type":"GrayBatchUpdate","batchUpdate":{"batch":2,"releaseType":"auto","batchWaitTime":1},"grayUpdate":{"gray":1}}` * Example 2: One instance for a canary release + Two subsequent batches + Manual batching. `{"type":"GrayBatchUpdate","batchUpdate":{"batch":2,"releaseType":"manual"},"grayUpdate":{"gray":1}}` * Example 3: Two batches + Automatic batching + 0-minute batch interval. `{"type":"BatchUpdate","batchUpdate":{"batch":2,"releaseType":"auto","batchWaitTime":0}}`
public DeployK8sApplicationRequest.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 DeployK8sApplicationRequest.Builder useBodyEncoding(Boolean useBodyEncoding)
> If this parameter is not specified in application configuration, the default value false is applied.
public DeployK8sApplicationRequest.Builder userBaseImageUrl(String userBaseImageUrl)
public DeployK8sApplicationRequest.Builder volumesStr(String volumesStr)
public DeployK8sApplicationRequest.Builder webContainer(String webContainer)
public DeployK8sApplicationRequest.Builder webContainerConfig(String webContainerConfig)
* useDefaultConfig: specifies whether to use the default configuration. Value true indicates to use the default configuration. Value false indicates to use the custom configuration. 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 for the application 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 1025 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 greatly affects the application performance. We recommend that you set this parameter under professional guidance. * 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 DeployK8sApplicationRequest build()
Copyright © 2023. All rights reserved.