Terraform module which creates CCE (Cloud Container Engine) resources on HuaweiCloud.
module "cce" {
source = "github.com/artifactsystems/terraform-huawei-cce?ref=v1.0.0"
name = "my-cce-cluster"
region = "tr-west-1"
flavor_id = "cce.s1.small"
vpc_id = "vpc-xxxxx"
subnet_id = "subnet-xxxxx"
container_network_type = "overlay_l2"
tags = {
Terraform = "true"
Environment = "dev"
}
}This module supports the following CCE features:
- ✅ CCE Cluster: Create and manage Kubernetes clusters
- ✅ Node Pools: Create node pools with auto-scaling support
- ✅ Addons: Manage Kubernetes addons (autoscaler, metrics-server, etc.)
- ✅ Log Configuration: Cluster log configuration with LTS integration
- ✅ IPv6 Support: IPv6 support in clusters
- ✅ Encryption: Encryption support with KMS
- ✅ Enterprise Project: HuaweiCloud Enterprise Project integration
- ✅ Auto Scaling: Auto-scaling at node pool level
- ✅ Flexible Networking: overlay_l2, vpc-router, and eni container network types
- ✅ Storage Configuration: Root and data volume configuration
- ✅ Security: Security groups, pod security groups, and taint management
- ✅ Tag Management: Comprehensive tag support for all resources
See the examples directory for detailed usage examples:
- simple - Basic CCE cluster (with VPC and subnet)
- node-pool - CCE cluster with node pool
- addon - CCE cluster with addons (autoscaler, metrics-server)
- log-config - CCE cluster with log configuration
This module contains the following submodules:
| Name | Version |
|---|---|
| terraform | >= 1.0 |
| huaweicloud | >= 1.79.0 |
| Name | Version |
|---|---|
| huaweicloud | >= 1.79.0 |
See variables.tf for detailed input variables.
See outputs.tf for detailed output values.
Main outputs:
cluster_id: CCE cluster IDcluster_name: CCE cluster namecluster_endpoint: Kubernetes API server endpointcluster_kube_config_raw: Raw Kubernetes config for kubectlnode_pool_ids: Map of node pool IDsaddon_ids: Map of addon IDslog_config_id: Log configuration ID
Report issues/questions/feature requests in the issues section.
Full contributing guidelines are covered here.