alicloud.edas.K8sApplication
Explore with Pulumi AI
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.
Create K8sApplication Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new K8sApplication(name: string, args: K8sApplicationArgs, opts?: CustomResourceOptions);
@overload
def K8sApplication(resource_name: str,
args: K8sApplicationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def K8sApplication(resource_name: str,
opts: Optional[ResourceOptions] = None,
cluster_id: Optional[str] = None,
application_name: Optional[str] = None,
limit_mem: Optional[int] = None,
envs: Optional[Mapping[str, str]] = None,
local_volume: Optional[str] = None,
edas_container_version: Optional[str] = None,
logical_region_id: Optional[str] = None,
image_url: Optional[str] = None,
internet_slb_id: Optional[str] = None,
internet_slb_port: Optional[int] = None,
internet_slb_protocol: Optional[str] = None,
internet_target_port: Optional[int] = None,
jdk: Optional[str] = None,
mount_descs: Optional[str] = None,
application_descriotion: Optional[str] = None,
liveness: Optional[str] = None,
command_args: Optional[Sequence[str]] = None,
command: Optional[str] = None,
limit_m_cpu: Optional[int] = None,
namespace: Optional[str] = None,
nas_id: Optional[str] = None,
package_type: Optional[str] = None,
package_url: Optional[str] = None,
package_version: Optional[str] = None,
post_start: Optional[str] = None,
pre_stop: Optional[str] = None,
readiness: Optional[str] = None,
replicas: Optional[int] = None,
requests_m_cpu: Optional[int] = None,
requests_mem: Optional[int] = None,
web_container: Optional[str] = None)
func NewK8sApplication(ctx *Context, name string, args K8sApplicationArgs, opts ...ResourceOption) (*K8sApplication, error)
public K8sApplication(string name, K8sApplicationArgs args, CustomResourceOptions? opts = null)
public K8sApplication(String name, K8sApplicationArgs args)
public K8sApplication(String name, K8sApplicationArgs args, CustomResourceOptions options)
type: alicloud:edas:K8sApplication
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args K8sApplicationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args K8sApplicationArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args K8sApplicationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args K8sApplicationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args K8sApplicationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var k8sApplicationResource = new AliCloud.Edas.K8sApplication("k8sApplicationResource", new()
{
ClusterId = "string",
ApplicationName = "string",
LimitMem = 0,
Envs =
{
{ "string", "string" },
},
LocalVolume = "string",
EdasContainerVersion = "string",
LogicalRegionId = "string",
ImageUrl = "string",
Jdk = "string",
MountDescs = "string",
ApplicationDescriotion = "string",
Liveness = "string",
CommandArgs = new[]
{
"string",
},
Command = "string",
LimitMCpu = 0,
Namespace = "string",
NasId = "string",
PackageType = "string",
PackageUrl = "string",
PackageVersion = "string",
PostStart = "string",
PreStop = "string",
Readiness = "string",
Replicas = 0,
RequestsMCpu = 0,
RequestsMem = 0,
WebContainer = "string",
});
example, err := edas.NewK8sApplication(ctx, "k8sApplicationResource", &edas.K8sApplicationArgs{
ClusterId: pulumi.String("string"),
ApplicationName: pulumi.String("string"),
LimitMem: pulumi.Int(0),
Envs: pulumi.StringMap{
"string": pulumi.String("string"),
},
LocalVolume: pulumi.String("string"),
EdasContainerVersion: pulumi.String("string"),
LogicalRegionId: pulumi.String("string"),
ImageUrl: pulumi.String("string"),
Jdk: pulumi.String("string"),
MountDescs: pulumi.String("string"),
ApplicationDescriotion: pulumi.String("string"),
Liveness: pulumi.String("string"),
CommandArgs: pulumi.StringArray{
pulumi.String("string"),
},
Command: pulumi.String("string"),
LimitMCpu: pulumi.Int(0),
Namespace: pulumi.String("string"),
NasId: pulumi.String("string"),
PackageType: pulumi.String("string"),
PackageUrl: pulumi.String("string"),
PackageVersion: pulumi.String("string"),
PostStart: pulumi.String("string"),
PreStop: pulumi.String("string"),
Readiness: pulumi.String("string"),
Replicas: pulumi.Int(0),
RequestsMCpu: pulumi.Int(0),
RequestsMem: pulumi.Int(0),
WebContainer: pulumi.String("string"),
})
var k8sApplicationResource = new K8sApplication("k8sApplicationResource", K8sApplicationArgs.builder()
.clusterId("string")
.applicationName("string")
.limitMem(0)
.envs(Map.of("string", "string"))
.localVolume("string")
.edasContainerVersion("string")
.logicalRegionId("string")
.imageUrl("string")
.jdk("string")
.mountDescs("string")
.applicationDescriotion("string")
.liveness("string")
.commandArgs("string")
.command("string")
.limitMCpu(0)
.namespace("string")
.nasId("string")
.packageType("string")
.packageUrl("string")
.packageVersion("string")
.postStart("string")
.preStop("string")
.readiness("string")
.replicas(0)
.requestsMCpu(0)
.requestsMem(0)
.webContainer("string")
.build());
k8s_application_resource = alicloud.edas.K8sApplication("k8sApplicationResource",
cluster_id="string",
application_name="string",
limit_mem=0,
envs={
"string": "string",
},
local_volume="string",
edas_container_version="string",
logical_region_id="string",
image_url="string",
jdk="string",
mount_descs="string",
application_descriotion="string",
liveness="string",
command_args=["string"],
command="string",
limit_m_cpu=0,
namespace="string",
nas_id="string",
package_type="string",
package_url="string",
package_version="string",
post_start="string",
pre_stop="string",
readiness="string",
replicas=0,
requests_m_cpu=0,
requests_mem=0,
web_container="string")
const k8sApplicationResource = new alicloud.edas.K8sApplication("k8sApplicationResource", {
clusterId: "string",
applicationName: "string",
limitMem: 0,
envs: {
string: "string",
},
localVolume: "string",
edasContainerVersion: "string",
logicalRegionId: "string",
imageUrl: "string",
jdk: "string",
mountDescs: "string",
applicationDescriotion: "string",
liveness: "string",
commandArgs: ["string"],
command: "string",
limitMCpu: 0,
namespace: "string",
nasId: "string",
packageType: "string",
packageUrl: "string",
packageVersion: "string",
postStart: "string",
preStop: "string",
readiness: "string",
replicas: 0,
requestsMCpu: 0,
requestsMem: 0,
webContainer: "string",
});
type: alicloud:edas:K8sApplication
properties:
applicationDescriotion: string
applicationName: string
clusterId: string
command: string
commandArgs:
- string
edasContainerVersion: string
envs:
string: string
imageUrl: string
jdk: string
limitMCpu: 0
limitMem: 0
liveness: string
localVolume: string
logicalRegionId: string
mountDescs: string
namespace: string
nasId: string
packageType: string
packageUrl: string
packageVersion: string
postStart: string
preStop: string
readiness: string
replicas: 0
requestsMCpu: 0
requestsMem: 0
webContainer: string
K8sApplication Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The K8sApplication resource accepts the following input properties:
- Application
Name string - The name of the application you want to create. Must start with character,supports numbers, letters and dashes (-), supports up to 36 characters
- Cluster
Id string - The ID of the alicloud container service kubernetes cluster that you want to import to. You can call the ListCluster operation to query.
- Application
Descriotion string - The description of the application
- Command string
- The set command, if set, will replace the startup command in the mirror when the mirror is started.
- Command
Args 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. - Edas
Container stringVersion - EDAS-Container version that the deployed package depends on. Image does not support this parameter.
- Envs Dictionary<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. - Image
Url string - Mirror address. When the package_type is set to 'Image', this parameter item is required.
- Internet
Slb stringId - 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.
- Internet
Slb intPort - The public network SLB front-end port, range 1~65535. It has been deprecated and new resource 'alicloud_edas_k8s_slb_attachment' replaces it.
- Internet
Slb stringProtocol - 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.
- Internet
Target intPort - 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.
- Jdk 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.
- Limit
MCpu int - The CPU quota of the application instance during application operation. Unit: Number of millcores, set to 0 means unlimited, similar to request_cpu.
- Limit
Mem int - The memory limit of the application instance during application operation, unit: M.
- Liveness string
- Container survival status monitoring, format such as:
{"failureThreshold": 3,"initialDelaySeconds": 5,"successThreshold": 1,"timeoutSeconds": 1,"tcpSocket":{"host":"", "port":8080} }
. - Local
Volume 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. - Logical
Region stringId - The ID corresponding to the EDAS namespace, the non-default namespace must be filled in.
- Mount
Descs 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. - Namespace string
- The namespace of the K8s cluster, it will determine which K8s namespace your application is deployed in. The default is 'default'.
- Nas
Id 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.
- Package
Type string - Application package type. Optional parameter values include: FatJar, WAR and Image.
- Package
Url string - The url of the package to deploy.Applications deployed through FatJar or WAR packages need to configure it.
- Package
Version string - The version number of the deployment package. WAR and FatJar types are required. Please customize its meaning.
- Post
Start string - Execute script after startup
- Pre
Stop string - Execute script before stopping
- Readiness 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"} ]}}
. - Replicas int
- Number of application instances.
- Requests
MCpu int - When the application is created, the CPU quota of the application instance, unit: number of millcores, similar to request_cpu
- Requests
Mem int - When the application is created, the memory limit of the application instance, unit: M. When set to 0, it means unlimited.
- Web
Container 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.
- Application
Name string - The name of the application you want to create. Must start with character,supports numbers, letters and dashes (-), supports up to 36 characters
- Cluster
Id string - The ID of the alicloud container service kubernetes cluster that you want to import to. You can call the ListCluster operation to query.
- Application
Descriotion string - The description of the application
- Command string
- The set command, if set, will replace the startup command in the mirror when the mirror is started.
- Command
Args []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. - Edas
Container stringVersion - EDAS-Container version that the deployed package depends on. Image does not support this parameter.
- Envs 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. - Image
Url string - Mirror address. When the package_type is set to 'Image', this parameter item is required.
- Internet
Slb stringId - 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.
- Internet
Slb intPort - The public network SLB front-end port, range 1~65535. It has been deprecated and new resource 'alicloud_edas_k8s_slb_attachment' replaces it.
- Internet
Slb stringProtocol - 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.
- Internet
Target intPort - 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.
- Jdk 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.
- Limit
MCpu int - The CPU quota of the application instance during application operation. Unit: Number of millcores, set to 0 means unlimited, similar to request_cpu.
- Limit
Mem int - The memory limit of the application instance during application operation, unit: M.
- Liveness string
- Container survival status monitoring, format such as:
{"failureThreshold": 3,"initialDelaySeconds": 5,"successThreshold": 1,"timeoutSeconds": 1,"tcpSocket":{"host":"", "port":8080} }
. - Local
Volume 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. - Logical
Region stringId - The ID corresponding to the EDAS namespace, the non-default namespace must be filled in.
- Mount
Descs 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. - Namespace string
- The namespace of the K8s cluster, it will determine which K8s namespace your application is deployed in. The default is 'default'.
- Nas
Id 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.
- Package
Type string - Application package type. Optional parameter values include: FatJar, WAR and Image.
- Package
Url string - The url of the package to deploy.Applications deployed through FatJar or WAR packages need to configure it.
- Package
Version string - The version number of the deployment package. WAR and FatJar types are required. Please customize its meaning.
- Post
Start string - Execute script after startup
- Pre
Stop string - Execute script before stopping
- Readiness 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"} ]}}
. - Replicas int
- Number of application instances.
- Requests
MCpu int - When the application is created, the CPU quota of the application instance, unit: number of millcores, similar to request_cpu
- Requests
Mem int - When the application is created, the memory limit of the application instance, unit: M. When set to 0, it means unlimited.
- Web
Container 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.
- application
Name String - The name of the application you want to create. Must start with character,supports numbers, letters and dashes (-), supports up to 36 characters
- cluster
Id String - The ID of the alicloud container service kubernetes cluster that you want to import to. You can call the ListCluster operation to query.
- application
Descriotion String - The description of the application
- command String
- The set command, if set, will replace the startup command in the mirror when the mirror is started.
- command
Args 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. - edas
Container StringVersion - EDAS-Container version that the deployed package depends on. Image does not support this parameter.
- envs 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. - image
Url String - Mirror address. When the package_type is set to 'Image', this parameter item is required.
- internet
Slb StringId - 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.
- internet
Slb IntegerPort - The public network SLB front-end port, range 1~65535. It has been deprecated and new resource 'alicloud_edas_k8s_slb_attachment' replaces it.
- internet
Slb StringProtocol - 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.
- internet
Target IntegerPort - 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.
- jdk 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.
- limit
MCpu Integer - The CPU quota of the application instance during application operation. Unit: Number of millcores, set to 0 means unlimited, similar to request_cpu.
- limit
Mem Integer - The memory limit of the application instance during application operation, unit: M.
- liveness String
- Container survival status monitoring, format such as:
{"failureThreshold": 3,"initialDelaySeconds": 5,"successThreshold": 1,"timeoutSeconds": 1,"tcpSocket":{"host":"", "port":8080} }
. - local
Volume 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. - logical
Region StringId - The ID corresponding to the EDAS namespace, the non-default namespace must be filled in.
- mount
Descs 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. - namespace String
- The namespace of the K8s cluster, it will determine which K8s namespace your application is deployed in. The default is 'default'.
- nas
Id 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.
- package
Type String - Application package type. Optional parameter values include: FatJar, WAR and Image.
- package
Url String - The url of the package to deploy.Applications deployed through FatJar or WAR packages need to configure it.
- package
Version String - The version number of the deployment package. WAR and FatJar types are required. Please customize its meaning.
- post
Start String - Execute script after startup
- pre
Stop String - Execute script before stopping
- readiness 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"} ]}}
. - replicas Integer
- Number of application instances.
- requests
MCpu Integer - When the application is created, the CPU quota of the application instance, unit: number of millcores, similar to request_cpu
- requests
Mem Integer - When the application is created, the memory limit of the application instance, unit: M. When set to 0, it means unlimited.
- web
Container 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.
- application
Name string - The name of the application you want to create. Must start with character,supports numbers, letters and dashes (-), supports up to 36 characters
- cluster
Id string - The ID of the alicloud container service kubernetes cluster that you want to import to. You can call the ListCluster operation to query.
- application
Descriotion string - The description of the application
- command string
- The set command, if set, will replace the startup command in the mirror when the mirror is started.
- command
Args 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. - edas
Container stringVersion - EDAS-Container version that the deployed package depends on. Image does not support this parameter.
- envs {[key: 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. - image
Url string - Mirror address. When the package_type is set to 'Image', this parameter item is required.
- internet
Slb stringId - 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.
- internet
Slb numberPort - The public network SLB front-end port, range 1~65535. It has been deprecated and new resource 'alicloud_edas_k8s_slb_attachment' replaces it.
- internet
Slb stringProtocol - 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.
- internet
Target numberPort - 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.
- jdk 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.
- limit
MCpu number - The CPU quota of the application instance during application operation. Unit: Number of millcores, set to 0 means unlimited, similar to request_cpu.
- limit
Mem number - The memory limit of the application instance during application operation, unit: M.
- liveness string
- Container survival status monitoring, format such as:
{"failureThreshold": 3,"initialDelaySeconds": 5,"successThreshold": 1,"timeoutSeconds": 1,"tcpSocket":{"host":"", "port":8080} }
. - local
Volume 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. - logical
Region stringId - The ID corresponding to the EDAS namespace, the non-default namespace must be filled in.
- mount
Descs 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. - namespace string
- The namespace of the K8s cluster, it will determine which K8s namespace your application is deployed in. The default is 'default'.
- nas
Id 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.
- package
Type string - Application package type. Optional parameter values include: FatJar, WAR and Image.
- package
Url string - The url of the package to deploy.Applications deployed through FatJar or WAR packages need to configure it.
- package
Version string - The version number of the deployment package. WAR and FatJar types are required. Please customize its meaning.
- post
Start string - Execute script after startup
- pre
Stop string - Execute script before stopping
- readiness 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"} ]}}
. - replicas number
- Number of application instances.
- requests
MCpu number - When the application is created, the CPU quota of the application instance, unit: number of millcores, similar to request_cpu
- requests
Mem number - When the application is created, the memory limit of the application instance, unit: M. When set to 0, it means unlimited.
- web
Container 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.
- application_
name str - The name of the application you want to create. Must start with character,supports numbers, letters and dashes (-), supports up to 36 characters
- cluster_
id str - The ID of the alicloud container service kubernetes cluster that you want to import to. You can call the ListCluster operation to query.
- application_
descriotion str - The description of the application
- command str
- The set command, if set, will replace the startup command in the mirror when the mirror is started.
- command_
args Sequence[str] - 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. - edas_
container_ strversion - EDAS-Container version that the deployed package depends on. Image does not support this parameter.
- envs Mapping[str, str]
- 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. - image_
url str - Mirror address. When the package_type is set to 'Image', this parameter item is required.
- internet_
slb_ strid - 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.
- internet_
slb_ intport - The public network SLB front-end port, range 1~65535. It has been deprecated and new resource 'alicloud_edas_k8s_slb_attachment' replaces it.
- internet_
slb_ strprotocol - 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.
- internet_
target_ intport - 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.
- jdk str
- 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.
- limit_
m_ intcpu - The CPU quota of the application instance during application operation. Unit: Number of millcores, set to 0 means unlimited, similar to request_cpu.
- limit_
mem int - The memory limit of the application instance during application operation, unit: M.
- liveness str
- Container survival status monitoring, format such as:
{"failureThreshold": 3,"initialDelaySeconds": 5,"successThreshold": 1,"timeoutSeconds": 1,"tcpSocket":{"host":"", "port":8080} }
. - local_
volume str - 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. - logical_
region_ strid - The ID corresponding to the EDAS namespace, the non-default namespace must be filled in.
- mount_
descs str - 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. - namespace str
- The namespace of the K8s cluster, it will determine which K8s namespace your application is deployed in. The default is 'default'.
- nas_
id str - 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.
- package_
type str - Application package type. Optional parameter values include: FatJar, WAR and Image.
- package_
url str - The url of the package to deploy.Applications deployed through FatJar or WAR packages need to configure it.
- package_
version str - The version number of the deployment package. WAR and FatJar types are required. Please customize its meaning.
- post_
start str - Execute script after startup
- pre_
stop str - Execute script before stopping
- readiness str
- 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"} ]}}
. - replicas int
- Number of application instances.
- requests_
m_ intcpu - When the application is created, the CPU quota of the application instance, unit: number of millcores, similar to request_cpu
- requests_
mem int - When the application is created, the memory limit of the application instance, unit: M. When set to 0, it means unlimited.
- web_
container str - 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.
- application
Name String - The name of the application you want to create. Must start with character,supports numbers, letters and dashes (-), supports up to 36 characters
- cluster
Id String - The ID of the alicloud container service kubernetes cluster that you want to import to. You can call the ListCluster operation to query.
- application
Descriotion String - The description of the application
- command String
- The set command, if set, will replace the startup command in the mirror when the mirror is started.
- command
Args 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. - edas
Container StringVersion - EDAS-Container version that the deployed package depends on. Image does not support this parameter.
- envs Map<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. - image
Url String - Mirror address. When the package_type is set to 'Image', this parameter item is required.
- internet
Slb StringId - 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.
- internet
Slb NumberPort - The public network SLB front-end port, range 1~65535. It has been deprecated and new resource 'alicloud_edas_k8s_slb_attachment' replaces it.
- internet
Slb StringProtocol - 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.
- internet
Target NumberPort - 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.
- jdk 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.
- limit
MCpu Number - The CPU quota of the application instance during application operation. Unit: Number of millcores, set to 0 means unlimited, similar to request_cpu.
- limit
Mem Number - The memory limit of the application instance during application operation, unit: M.
- liveness String
- Container survival status monitoring, format such as:
{"failureThreshold": 3,"initialDelaySeconds": 5,"successThreshold": 1,"timeoutSeconds": 1,"tcpSocket":{"host":"", "port":8080} }
. - local
Volume 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. - logical
Region StringId - The ID corresponding to the EDAS namespace, the non-default namespace must be filled in.
- mount
Descs 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. - namespace String
- The namespace of the K8s cluster, it will determine which K8s namespace your application is deployed in. The default is 'default'.
- nas
Id 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.
- package
Type String - Application package type. Optional parameter values include: FatJar, WAR and Image.
- package
Url String - The url of the package to deploy.Applications deployed through FatJar or WAR packages need to configure it.
- package
Version String - The version number of the deployment package. WAR and FatJar types are required. Please customize its meaning.
- post
Start String - Execute script after startup
- pre
Stop String - Execute script before stopping
- readiness 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"} ]}}
. - replicas Number
- Number of application instances.
- requests
MCpu Number - When the application is created, the CPU quota of the application instance, unit: number of millcores, similar to request_cpu
- requests
Mem Number - When the application is created, the memory limit of the application instance, unit: M. When set to 0, it means unlimited.
- web
Container 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.
Outputs
All input properties are implicitly available as output properties. Additionally, the K8sApplication resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing K8sApplication Resource
Get an existing K8sApplication resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: K8sApplicationState, opts?: CustomResourceOptions): K8sApplication
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
application_descriotion: Optional[str] = None,
application_name: Optional[str] = None,
cluster_id: Optional[str] = None,
command: Optional[str] = None,
command_args: Optional[Sequence[str]] = None,
edas_container_version: Optional[str] = None,
envs: Optional[Mapping[str, str]] = None,
image_url: Optional[str] = None,
internet_slb_id: Optional[str] = None,
internet_slb_port: Optional[int] = None,
internet_slb_protocol: Optional[str] = None,
internet_target_port: Optional[int] = None,
jdk: Optional[str] = None,
limit_m_cpu: Optional[int] = None,
limit_mem: Optional[int] = None,
liveness: Optional[str] = None,
local_volume: Optional[str] = None,
logical_region_id: Optional[str] = None,
mount_descs: Optional[str] = None,
namespace: Optional[str] = None,
nas_id: Optional[str] = None,
package_type: Optional[str] = None,
package_url: Optional[str] = None,
package_version: Optional[str] = None,
post_start: Optional[str] = None,
pre_stop: Optional[str] = None,
readiness: Optional[str] = None,
replicas: Optional[int] = None,
requests_m_cpu: Optional[int] = None,
requests_mem: Optional[int] = None,
web_container: Optional[str] = None) -> K8sApplication
func GetK8sApplication(ctx *Context, name string, id IDInput, state *K8sApplicationState, opts ...ResourceOption) (*K8sApplication, error)
public static K8sApplication Get(string name, Input<string> id, K8sApplicationState? state, CustomResourceOptions? opts = null)
public static K8sApplication get(String name, Output<String> id, K8sApplicationState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Application
Descriotion string - The description of the application
- Application
Name string - The name of the application you want to create. Must start with character,supports numbers, letters and dashes (-), supports up to 36 characters
- Cluster
Id string - The ID of the alicloud container service kubernetes cluster that you want to import to. You can call the ListCluster operation to query.
- Command string
- The set command, if set, will replace the startup command in the mirror when the mirror is started.
- Command
Args 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. - Edas
Container stringVersion - EDAS-Container version that the deployed package depends on. Image does not support this parameter.
- Envs Dictionary<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. - Image
Url string - Mirror address. When the package_type is set to 'Image', this parameter item is required.
- Internet
Slb stringId - 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.
- Internet
Slb intPort - The public network SLB front-end port, range 1~65535. It has been deprecated and new resource 'alicloud_edas_k8s_slb_attachment' replaces it.
- Internet
Slb stringProtocol - 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.
- Internet
Target intPort - 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.
- Jdk 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.
- Limit
MCpu int - The CPU quota of the application instance during application operation. Unit: Number of millcores, set to 0 means unlimited, similar to request_cpu.
- Limit
Mem int - The memory limit of the application instance during application operation, unit: M.
- Liveness string
- Container survival status monitoring, format such as:
{"failureThreshold": 3,"initialDelaySeconds": 5,"successThreshold": 1,"timeoutSeconds": 1,"tcpSocket":{"host":"", "port":8080} }
. - Local
Volume 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. - Logical
Region stringId - The ID corresponding to the EDAS namespace, the non-default namespace must be filled in.
- Mount
Descs 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. - Namespace string
- The namespace of the K8s cluster, it will determine which K8s namespace your application is deployed in. The default is 'default'.
- Nas
Id 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.
- Package
Type string - Application package type. Optional parameter values include: FatJar, WAR and Image.
- Package
Url string - The url of the package to deploy.Applications deployed through FatJar or WAR packages need to configure it.
- Package
Version string - The version number of the deployment package. WAR and FatJar types are required. Please customize its meaning.
- Post
Start string - Execute script after startup
- Pre
Stop string - Execute script before stopping
- Readiness 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"} ]}}
. - Replicas int
- Number of application instances.
- Requests
MCpu int - When the application is created, the CPU quota of the application instance, unit: number of millcores, similar to request_cpu
- Requests
Mem int - When the application is created, the memory limit of the application instance, unit: M. When set to 0, it means unlimited.
- Web
Container 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.
- Application
Descriotion string - The description of the application
- Application
Name string - The name of the application you want to create. Must start with character,supports numbers, letters and dashes (-), supports up to 36 characters
- Cluster
Id string - The ID of the alicloud container service kubernetes cluster that you want to import to. You can call the ListCluster operation to query.
- Command string
- The set command, if set, will replace the startup command in the mirror when the mirror is started.
- Command
Args []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. - Edas
Container stringVersion - EDAS-Container version that the deployed package depends on. Image does not support this parameter.
- Envs 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. - Image
Url string - Mirror address. When the package_type is set to 'Image', this parameter item is required.
- Internet
Slb stringId - 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.
- Internet
Slb intPort - The public network SLB front-end port, range 1~65535. It has been deprecated and new resource 'alicloud_edas_k8s_slb_attachment' replaces it.
- Internet
Slb stringProtocol - 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.
- Internet
Target intPort - 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.
- Jdk 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.
- Limit
MCpu int - The CPU quota of the application instance during application operation. Unit: Number of millcores, set to 0 means unlimited, similar to request_cpu.
- Limit
Mem int - The memory limit of the application instance during application operation, unit: M.
- Liveness string
- Container survival status monitoring, format such as:
{"failureThreshold": 3,"initialDelaySeconds": 5,"successThreshold": 1,"timeoutSeconds": 1,"tcpSocket":{"host":"", "port":8080} }
. - Local
Volume 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. - Logical
Region stringId - The ID corresponding to the EDAS namespace, the non-default namespace must be filled in.
- Mount
Descs 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. - Namespace string
- The namespace of the K8s cluster, it will determine which K8s namespace your application is deployed in. The default is 'default'.
- Nas
Id 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.
- Package
Type string - Application package type. Optional parameter values include: FatJar, WAR and Image.
- Package
Url string - The url of the package to deploy.Applications deployed through FatJar or WAR packages need to configure it.
- Package
Version string - The version number of the deployment package. WAR and FatJar types are required. Please customize its meaning.
- Post
Start string - Execute script after startup
- Pre
Stop string - Execute script before stopping
- Readiness 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"} ]}}
. - Replicas int
- Number of application instances.
- Requests
MCpu int - When the application is created, the CPU quota of the application instance, unit: number of millcores, similar to request_cpu
- Requests
Mem int - When the application is created, the memory limit of the application instance, unit: M. When set to 0, it means unlimited.
- Web
Container 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.
- application
Descriotion String - The description of the application
- application
Name String - The name of the application you want to create. Must start with character,supports numbers, letters and dashes (-), supports up to 36 characters
- cluster
Id String - The ID of the alicloud container service kubernetes cluster that you want to import to. You can call the ListCluster operation to query.
- command String
- The set command, if set, will replace the startup command in the mirror when the mirror is started.
- command
Args 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. - edas
Container StringVersion - EDAS-Container version that the deployed package depends on. Image does not support this parameter.
- envs 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. - image
Url String - Mirror address. When the package_type is set to 'Image', this parameter item is required.
- internet
Slb StringId - 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.
- internet
Slb IntegerPort - The public network SLB front-end port, range 1~65535. It has been deprecated and new resource 'alicloud_edas_k8s_slb_attachment' replaces it.
- internet
Slb StringProtocol - 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.
- internet
Target IntegerPort - 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.
- jdk 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.
- limit
MCpu Integer - The CPU quota of the application instance during application operation. Unit: Number of millcores, set to 0 means unlimited, similar to request_cpu.
- limit
Mem Integer - The memory limit of the application instance during application operation, unit: M.
- liveness String
- Container survival status monitoring, format such as:
{"failureThreshold": 3,"initialDelaySeconds": 5,"successThreshold": 1,"timeoutSeconds": 1,"tcpSocket":{"host":"", "port":8080} }
. - local
Volume 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. - logical
Region StringId - The ID corresponding to the EDAS namespace, the non-default namespace must be filled in.
- mount
Descs 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. - namespace String
- The namespace of the K8s cluster, it will determine which K8s namespace your application is deployed in. The default is 'default'.
- nas
Id 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.
- package
Type String - Application package type. Optional parameter values include: FatJar, WAR and Image.
- package
Url String - The url of the package to deploy.Applications deployed through FatJar or WAR packages need to configure it.
- package
Version String - The version number of the deployment package. WAR and FatJar types are required. Please customize its meaning.
- post
Start String - Execute script after startup
- pre
Stop String - Execute script before stopping
- readiness 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"} ]}}
. - replicas Integer
- Number of application instances.
- requests
MCpu Integer - When the application is created, the CPU quota of the application instance, unit: number of millcores, similar to request_cpu
- requests
Mem Integer - When the application is created, the memory limit of the application instance, unit: M. When set to 0, it means unlimited.
- web
Container 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.
- application
Descriotion string - The description of the application
- application
Name string - The name of the application you want to create. Must start with character,supports numbers, letters and dashes (-), supports up to 36 characters
- cluster
Id string - The ID of the alicloud container service kubernetes cluster that you want to import to. You can call the ListCluster operation to query.
- command string
- The set command, if set, will replace the startup command in the mirror when the mirror is started.
- command
Args 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. - edas
Container stringVersion - EDAS-Container version that the deployed package depends on. Image does not support this parameter.
- envs {[key: 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. - image
Url string - Mirror address. When the package_type is set to 'Image', this parameter item is required.
- internet
Slb stringId - 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.
- internet
Slb numberPort - The public network SLB front-end port, range 1~65535. It has been deprecated and new resource 'alicloud_edas_k8s_slb_attachment' replaces it.
- internet
Slb stringProtocol - 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.
- internet
Target numberPort - 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.
- jdk 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.
- limit
MCpu number - The CPU quota of the application instance during application operation. Unit: Number of millcores, set to 0 means unlimited, similar to request_cpu.
- limit
Mem number - The memory limit of the application instance during application operation, unit: M.
- liveness string
- Container survival status monitoring, format such as:
{"failureThreshold": 3,"initialDelaySeconds": 5,"successThreshold": 1,"timeoutSeconds": 1,"tcpSocket":{"host":"", "port":8080} }
. - local
Volume 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. - logical
Region stringId - The ID corresponding to the EDAS namespace, the non-default namespace must be filled in.
- mount
Descs 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. - namespace string
- The namespace of the K8s cluster, it will determine which K8s namespace your application is deployed in. The default is 'default'.
- nas
Id 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.
- package
Type string - Application package type. Optional parameter values include: FatJar, WAR and Image.
- package
Url string - The url of the package to deploy.Applications deployed through FatJar or WAR packages need to configure it.
- package
Version string - The version number of the deployment package. WAR and FatJar types are required. Please customize its meaning.
- post
Start string - Execute script after startup
- pre
Stop string - Execute script before stopping
- readiness 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"} ]}}
. - replicas number
- Number of application instances.
- requests
MCpu number - When the application is created, the CPU quota of the application instance, unit: number of millcores, similar to request_cpu
- requests
Mem number - When the application is created, the memory limit of the application instance, unit: M. When set to 0, it means unlimited.
- web
Container 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.
- application_
descriotion str - The description of the application
- application_
name str - The name of the application you want to create. Must start with character,supports numbers, letters and dashes (-), supports up to 36 characters
- cluster_
id str - The ID of the alicloud container service kubernetes cluster that you want to import to. You can call the ListCluster operation to query.
- command str
- The set command, if set, will replace the startup command in the mirror when the mirror is started.
- command_
args Sequence[str] - 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. - edas_
container_ strversion - EDAS-Container version that the deployed package depends on. Image does not support this parameter.
- envs Mapping[str, str]
- 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. - image_
url str - Mirror address. When the package_type is set to 'Image', this parameter item is required.
- internet_
slb_ strid - 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.
- internet_
slb_ intport - The public network SLB front-end port, range 1~65535. It has been deprecated and new resource 'alicloud_edas_k8s_slb_attachment' replaces it.
- internet_
slb_ strprotocol - 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.
- internet_
target_ intport - 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.
- jdk str
- 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.
- limit_
m_ intcpu - The CPU quota of the application instance during application operation. Unit: Number of millcores, set to 0 means unlimited, similar to request_cpu.
- limit_
mem int - The memory limit of the application instance during application operation, unit: M.
- liveness str
- Container survival status monitoring, format such as:
{"failureThreshold": 3,"initialDelaySeconds": 5,"successThreshold": 1,"timeoutSeconds": 1,"tcpSocket":{"host":"", "port":8080} }
. - local_
volume str - 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. - logical_
region_ strid - The ID corresponding to the EDAS namespace, the non-default namespace must be filled in.
- mount_
descs str - 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. - namespace str
- The namespace of the K8s cluster, it will determine which K8s namespace your application is deployed in. The default is 'default'.
- nas_
id str - 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.
- package_
type str - Application package type. Optional parameter values include: FatJar, WAR and Image.
- package_
url str - The url of the package to deploy.Applications deployed through FatJar or WAR packages need to configure it.
- package_
version str - The version number of the deployment package. WAR and FatJar types are required. Please customize its meaning.
- post_
start str - Execute script after startup
- pre_
stop str - Execute script before stopping
- readiness str
- 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"} ]}}
. - replicas int
- Number of application instances.
- requests_
m_ intcpu - When the application is created, the CPU quota of the application instance, unit: number of millcores, similar to request_cpu
- requests_
mem int - When the application is created, the memory limit of the application instance, unit: M. When set to 0, it means unlimited.
- web_
container str - 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.
- application
Descriotion String - The description of the application
- application
Name String - The name of the application you want to create. Must start with character,supports numbers, letters and dashes (-), supports up to 36 characters
- cluster
Id String - The ID of the alicloud container service kubernetes cluster that you want to import to. You can call the ListCluster operation to query.
- command String
- The set command, if set, will replace the startup command in the mirror when the mirror is started.
- command
Args 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. - edas
Container StringVersion - EDAS-Container version that the deployed package depends on. Image does not support this parameter.
- envs Map<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. - image
Url String - Mirror address. When the package_type is set to 'Image', this parameter item is required.
- internet
Slb StringId - 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.
- internet
Slb NumberPort - The public network SLB front-end port, range 1~65535. It has been deprecated and new resource 'alicloud_edas_k8s_slb_attachment' replaces it.
- internet
Slb StringProtocol - 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.
- internet
Target NumberPort - 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.
- jdk 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.
- limit
MCpu Number - The CPU quota of the application instance during application operation. Unit: Number of millcores, set to 0 means unlimited, similar to request_cpu.
- limit
Mem Number - The memory limit of the application instance during application operation, unit: M.
- liveness String
- Container survival status monitoring, format such as:
{"failureThreshold": 3,"initialDelaySeconds": 5,"successThreshold": 1,"timeoutSeconds": 1,"tcpSocket":{"host":"", "port":8080} }
. - local
Volume 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. - logical
Region StringId - The ID corresponding to the EDAS namespace, the non-default namespace must be filled in.
- mount
Descs 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. - namespace String
- The namespace of the K8s cluster, it will determine which K8s namespace your application is deployed in. The default is 'default'.
- nas
Id 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.
- package
Type String - Application package type. Optional parameter values include: FatJar, WAR and Image.
- package
Url String - The url of the package to deploy.Applications deployed through FatJar or WAR packages need to configure it.
- package
Version String - The version number of the deployment package. WAR and FatJar types are required. Please customize its meaning.
- post
Start String - Execute script after startup
- pre
Stop String - Execute script before stopping
- readiness 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"} ]}}
. - replicas Number
- Number of application instances.
- requests
MCpu Number - When the application is created, the CPU quota of the application instance, unit: number of millcores, similar to request_cpu
- requests
Mem Number - When the application is created, the memory limit of the application instance, unit: M. When set to 0, it means unlimited.
- web
Container 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.
Import
EDAS k8s application can be imported as below, e.g.
$ pulumi import alicloud:edas/k8sApplication:K8sApplication new_k8s_application application_id
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.