Skip to main content
Version: v0.10 🚧

Naming Conventions

Kubernetes Resources

Kusion adheres to specific rules when generating the Kubernetes resources for users' applications. The table below lists some common Kubernetes resource naming conventions.

ResourceConcatenation RuleExample ID
Namespaceproject namev1:Namespace:wordpress
Deploymentproject name-stack name-app nameapps/v1:Deployment:wordpress:wordpress-dev-wordpress
CronJobproject name-stack name-app namebatch/v1:CronJob:helloworld:helloworld-dev-helloworld
Serviceproject name-stack name-app name-public/privatev1:Service:helloworld:helloworld-dev-helloworld-public

Terraform Resources

Similarly, Kusion also adheres to specific naming conventions when generating the Terraform Resources. Some common resources are listed below.

ResourceConcatenation RuleExample ID
random_passwordapp name-dbhashicorp:random:random_password:wordpress-db
aws_security_groupapp name-dbhashicorp:aws:aws_security_group:wordpress-db
aws_db_instanceapp namehashicorp:aws:aws_db_instance:wordpress
alicloud_db_instanceapp namealiyun:alicloud:alicloud_db_instance:wordpress
alicloud_db_connectionapp namealiyun:alicloud:alicloud_db_connection:wordpress
alicloud_rds_accountapp namealiyun:alicloud:alicloud_rds_account:wordpress