public static final class StartK8sAppPrecheckRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
StartK8sAppPrecheckRequest.Builder |
annotations(String annotations)
The annotation of an application pod.
|
StartK8sAppPrecheckRequest.Builder |
appId(String appId)
The ID of the application.
|
StartK8sAppPrecheckRequest.Builder |
appName(String appName)
The name of the application.
|
StartK8sAppPrecheckRequest |
build() |
StartK8sAppPrecheckRequest.Builder |
clusterId(String clusterId)
The ID of the cluster.
|
StartK8sAppPrecheckRequest.Builder |
componentIds(String componentIds)
ComponentIds.
|
StartK8sAppPrecheckRequest.Builder |
configMountDescs(String configMountDescs)
The configuration for mounting a Kubernetes ConfigMap or Secret to a directory in an elastic container instance.
|
StartK8sAppPrecheckRequest.Builder |
emptyDirs(String emptyDirs)
The configuration for mounting a Kubernetes emptyDir volume to a directory in an elastic container instance.
|
StartK8sAppPrecheckRequest.Builder |
envFroms(String envFroms)
The Kubernetes environment variables that are configured in EnvFrom mode.
|
StartK8sAppPrecheckRequest.Builder |
envs(String envs)
The environment variables that are used to deploy the application.
|
StartK8sAppPrecheckRequest.Builder |
imageUrl(String imageUrl)
The URL of the image.
|
StartK8sAppPrecheckRequest.Builder |
javaStartUpConfig(String javaStartUpConfig)
The configuration of Java startup parameters for a Java application.
|
StartK8sAppPrecheckRequest.Builder |
labels(String labels)
The label of an application pod.
|
StartK8sAppPrecheckRequest.Builder |
limitEphemeralStorage(Integer limitEphemeralStorage)
The maximum size of space required by ephemeral storage.
|
StartK8sAppPrecheckRequest.Builder |
limitmCpu(Integer limitmCpu)
The maximum number of CPU cores allowed for each application instance when the application is running.
|
StartK8sAppPrecheckRequest.Builder |
limitMem(Integer limitMem)
The maximum size of memory allowed for each application instance when the application is running.
|
StartK8sAppPrecheckRequest.Builder |
localVolume(String localVolume)
The configurations that are used when the host files are mounted to the container on which the application is running.
|
StartK8sAppPrecheckRequest.Builder |
namespace(String namespace)
The namespace of the Kubernetes cluster.
|
StartK8sAppPrecheckRequest.Builder |
packageUrl(String packageUrl)
The URL of the deployment package.
|
StartK8sAppPrecheckRequest.Builder |
pvcMountDescs(String pvcMountDescs)
The configuration for mounting a Kubernetes PersistentVolumeClaim (PVC) to a directory in an elastic container instance.
|
StartK8sAppPrecheckRequest.Builder |
regionId(String regionId)
RegionId.
|
StartK8sAppPrecheckRequest.Builder |
replicas(Integer replicas)
The number of application instances.
|
StartK8sAppPrecheckRequest.Builder |
requestsEphemeralStorage(Integer requestsEphemeralStorage)
The minimum size of space required by ephemeral storage.
|
StartK8sAppPrecheckRequest.Builder |
requestsmCpu(Integer requestsmCpu)
The maximum number of CPU cores allowed for each application instance when the application is created.
|
StartK8sAppPrecheckRequest.Builder |
requestsMem(Integer requestsMem)
The maximum size of memory allowed for each application instance when the application is created.
|
public StartK8sAppPrecheckRequest.Builder annotations(String annotations)
public StartK8sAppPrecheckRequest.Builder appId(String appId)
public StartK8sAppPrecheckRequest.Builder appName(String appName)
public StartK8sAppPrecheckRequest.Builder clusterId(String clusterId)
public StartK8sAppPrecheckRequest.Builder componentIds(String componentIds)
public StartK8sAppPrecheckRequest.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 StartK8sAppPrecheckRequest.Builder emptyDirs(String emptyDirs)
* mountPath: The mount path in the container. This parameter is required. * readOnly: (Optional) The mount mode. The value true indicates the read-only mode. The value false indicates the read and write mode. Default value: false. * subPathExpr: (Optional) The regular expression that is used to match the subdirectory.
public StartK8sAppPrecheckRequest.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 StartK8sAppPrecheckRequest.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 StartK8sAppPrecheckRequest.Builder imageUrl(String imageUrl)
public StartK8sAppPrecheckRequest.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 StartK8sAppPrecheckRequest.Builder labels(String labels)
public StartK8sAppPrecheckRequest.Builder limitEphemeralStorage(Integer limitEphemeralStorage)
public StartK8sAppPrecheckRequest.Builder limitMem(Integer limitMem)
public StartK8sAppPrecheckRequest.Builder limitmCpu(Integer limitmCpu)
public StartK8sAppPrecheckRequest.Builder localVolume(String localVolume)
* `nodePath`: the host path. * `mountPath`: the path in the container. * `type`: the mounting type.
public StartK8sAppPrecheckRequest.Builder namespace(String namespace)
public StartK8sAppPrecheckRequest.Builder packageUrl(String packageUrl)
public StartK8sAppPrecheckRequest.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. The value true indicates the read-only mode. The value false indicates the read and write mode. Default value: false.
public StartK8sAppPrecheckRequest.Builder regionId(String regionId)
public StartK8sAppPrecheckRequest.Builder replicas(Integer replicas)
public StartK8sAppPrecheckRequest.Builder requestsEphemeralStorage(Integer requestsEphemeralStorage)
public StartK8sAppPrecheckRequest.Builder requestsMem(Integer requestsMem)
public StartK8sAppPrecheckRequest.Builder requestsmCpu(Integer requestsmCpu)
public StartK8sAppPrecheckRequest build()
Copyright © 2023. All rights reserved.