K8sApplication

class K8sApplication : KotlinCustomResource

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

Properties

Link copied to clipboard

The description of the application

Link copied to clipboard
val applicationName: Output<String>

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>

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>?

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>>?

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

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>>?

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 id: Output<String>
Link copied to clipboard
val imageUrl: Output<String>?

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

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

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>?

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

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>?

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>?

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>?

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>?

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

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

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>?

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>?

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

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

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>?

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>?

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>?

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

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

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>

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>?

Execute script after startup

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

Execute script before stopping

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val readiness: Output<String>?

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>?

Number of application instances.

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

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>?

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 urn: Output<String>
Link copied to clipboard
val webContainer: Output<String>?

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.