K8sApplicationArgs

data class K8sApplicationArgs(val applicationDescriotion: Output<String>? = null, val applicationName: Output<String>? = null, val clusterId: Output<String>? = null, val command: Output<String>? = null, val commandArgs: Output<List<String>>? = null, val edasContainerVersion: Output<String>? = null, val envs: Output<Map<String, String>>? = null, val imageUrl: Output<String>? = null, val internetSlbId: Output<String>? = null, val internetSlbPort: Output<Int>? = null, val internetSlbProtocol: Output<String>? = null, val internetTargetPort: Output<Int>? = null, val jdk: Output<String>? = null, val limitMCpu: Output<Int>? = null, val limitMem: Output<Int>? = null, val liveness: Output<String>? = null, val localVolume: Output<String>? = null, val logicalRegionId: Output<String>? = null, val mountDescs: Output<String>? = null, val namespace: Output<String>? = null, val nasId: Output<String>? = null, val packageType: Output<String>? = null, val packageUrl: Output<String>? = null, val packageVersion: Output<String>? = null, val postStart: Output<String>? = null, val preStop: Output<String>? = null, val readiness: Output<String>? = null, val replicas: Output<Int>? = null, val requestsMCpu: Output<Int>? = null, val requestsMem: Output<Int>? = null, val webContainer: Output<String>? = null) : ConvertibleToJava<K8sApplicationArgs>

Create an EDAS k8s application.For information about EDAS K8s Application and how to use it, see What is EDAS K8s Application.

NOTE: Available since v1.105.0.

Import

EDAS k8s application can be imported as below, e.g.

$ pulumi import alicloud:edas/k8sApplication:K8sApplication new_k8s_application application_id

Constructors

Link copied to clipboard
constructor(applicationDescriotion: Output<String>? = null, applicationName: Output<String>? = null, clusterId: Output<String>? = null, command: Output<String>? = null, commandArgs: Output<List<String>>? = null, edasContainerVersion: Output<String>? = null, envs: Output<Map<String, String>>? = null, imageUrl: Output<String>? = null, internetSlbId: Output<String>? = null, internetSlbPort: Output<Int>? = null, internetSlbProtocol: Output<String>? = null, internetTargetPort: Output<Int>? = null, jdk: Output<String>? = null, limitMCpu: Output<Int>? = null, limitMem: Output<Int>? = null, liveness: Output<String>? = null, localVolume: Output<String>? = null, logicalRegionId: Output<String>? = null, mountDescs: Output<String>? = null, namespace: Output<String>? = null, nasId: Output<String>? = null, packageType: Output<String>? = null, packageUrl: Output<String>? = null, packageVersion: Output<String>? = null, postStart: Output<String>? = null, preStop: Output<String>? = null, readiness: Output<String>? = null, replicas: Output<Int>? = null, requestsMCpu: Output<Int>? = null, requestsMem: Output<Int>? = null, webContainer: Output<String>? = null)

Properties

Link copied to clipboard
val applicationDescriotion: Output<String>? = null

The description of the application

Link copied to clipboard
val applicationName: Output<String>? = null

The name of the application you want to create. Must start with character,supports numbers, letters and dashes (-), supports up to 36 characters

Link copied to clipboard
val clusterId: Output<String>? = null

The ID of the alicloud container service kubernetes cluster that you want to import to. You can call the ListCluster operation to query.

Link copied to clipboard
val command: Output<String>? = null

The set command, if set, will replace the startup command in the mirror when the mirror is started.

Link copied to clipboard
val commandArgs: Output<List<String>>? = null

Used in combination with the command, the parameter of the command is a JsonArray string in the format: [{"argument":"-c"},{"argument":"test"}]. Among them, -c and test are two parameters that need to be set.

Link copied to clipboard
val edasContainerVersion: Output<String>? = null

EDAS-Container version that the deployed package depends on. Image does not support this parameter.

Link copied to clipboard
val envs: Output<Map<String, String>>? = null

Deployment environment variables, the format must conform to the JSON object array, such as: {"name":"x","value":"y"},{"name":"x2","value":"y2"}, If you want to cancel the configuration, you need to set an empty JSON array "" to indicate no configuration.

Link copied to clipboard
val imageUrl: Output<String>? = null

Mirror address. When the package_type is set to 'Image', this parameter item is required.

Link copied to clipboard
val internetSlbId: Output<String>? = null

Public network SLB ID. If not configured, EDAS will automatically purchase a new SLB for the user. It has been deprecated, and new resource 'alicloud_edas_k8s_slb_attachment' replaces it.

Link copied to clipboard
val internetSlbPort: Output<Int>? = null

The public network SLB front-end port, range 1~65535. It has been deprecated and new resource 'alicloud_edas_k8s_slb_attachment' replaces it.

Link copied to clipboard
val internetSlbProtocol: Output<String>? = null

The public network SLB protocol supports TCP, HTTP and HTTPS protocols. It has been deprecated, and new resource 'alicloud_edas_k8s_slb_attachment' replaces it.

Link copied to clipboard
val internetTargetPort: Output<Int>? = null

The private SLB back-end port, is also the service port of the application, ranging from 1 to 65535. It has been deprecated, and new resource 'alicloud_edas_k8s_slb_attachment' replaces it.

Link copied to clipboard
val jdk: Output<String>? = null

The JDK version that the deployed package depends on. The optional parameter values are Open JDK 7 and Open JDK 8. Image does not support this parameter.

Link copied to clipboard
val limitMCpu: Output<Int>? = null

The CPU quota of the application instance during application operation. Unit: Number of millcores, set to 0 means unlimited, similar to request_cpu.

Link copied to clipboard
val limitMem: Output<Int>? = null

The memory limit of the application instance during application operation, unit: M.

Link copied to clipboard
val liveness: Output<String>? = null

Container survival status monitoring, format such as: {"failureThreshold": 3,"initialDelaySeconds": 5,"successThreshold": 1,"timeoutSeconds": 1,"tcpSocket":{"host":"", "port":8080} }.

Link copied to clipboard
val localVolume: Output<String>? = null

The configuration of the host file mounted to the container. For example: [{"type":"","nodePath":"/localfiles","mountPath":"/app/files"},{"type":"Directory","nodePath":"/mnt", "mountPath":"/app/storage"}]. Among them, nodePath is the host path; mountPath is the path in the container; type is the mount type.

Link copied to clipboard
val logicalRegionId: Output<String>? = null

The ID corresponding to the EDAS namespace, the non-default namespace must be filled in.

Link copied to clipboard
val mountDescs: Output<String>? = null

Mount configuration description, as a serialized JSON. For example: [{"nasPath": "/k8s","mountPath": "/mnt"},{"nasPath": "/files","mountPath": "/app/files"}]. Among them, nasPath refers to the file storage path; mountPath refers to the path mounted in the container.

Link copied to clipboard
val namespace: Output<String>? = null

The namespace of the K8s cluster, it will determine which K8s namespace your application is deployed in. The default is 'default'.

Link copied to clipboard
val nasId: Output<String>? = null

The ID of the mounted NAS must be in the same region as the cluster. It must have an available mount point creation quota, or its mount point must be on a switch in the VPC. If it is not filled in and the mountDescs field exists, a NAS will be automatically purchased and mounted on the switch in the VPC by default.

Link copied to clipboard
val packageType: Output<String>? = null

Application package type. Optional parameter values include: FatJar, WAR and Image.

Link copied to clipboard
val packageUrl: Output<String>? = null

The url of the package to deploy.Applications deployed through FatJar or WAR packages need to configure it.

Link copied to clipboard
val packageVersion: Output<String>? = null

The version number of the deployment package. WAR and FatJar types are required. Please customize its meaning.

Link copied to clipboard
val postStart: Output<String>? = null

Execute script after startup

Link copied to clipboard
val preStop: Output<String>? = null

Execute script before stopping

Link copied to clipboard
val readiness: Output<String>? = null

Container service status check. If the check fails, the traffic passing through K8s Service will not be transferred to the container. The format is: {"failureThreshold": 3,"initialDelaySeconds": 5,"successThreshold": 1,"timeoutSeconds": 1, "httpGet": {"path": "/consumer","port": 8080,"scheme": "HTTP","httpHeaders": [{"name": "test","value": "testvalue"} ]}}.

Link copied to clipboard
val replicas: Output<Int>? = null

Number of application instances.

Link copied to clipboard
val requestsMCpu: Output<Int>? = null

When the application is created, the CPU quota of the application instance, unit: number of millcores, similar to request_cpu

Link copied to clipboard
val requestsMem: Output<Int>? = null

When the application is created, the memory limit of the application instance, unit: M. When set to 0, it means unlimited.

Link copied to clipboard
val webContainer: Output<String>? = null

The Tomcat version that the deployment package depends on. Applicable to Spring Cloud and Dubbo applications deployed through WAR packages. Image does not support this parameter.

Functions

Link copied to clipboard
open override fun toJava(): K8sApplicationArgs