https://github.com/artifactsystems/terraform-huawei-cce
Terraform module to create Huawei CCE resources
https://github.com/artifactsystems/terraform-huawei-cce
cce cloud-container-engine huaweicloud huaweicloud-cce huaweicloud-cce-cluster kubernetes terraform terraform-module
Last synced: 5 months ago
JSON representation
Terraform module to create Huawei CCE resources
- Host: GitHub
- URL: https://github.com/artifactsystems/terraform-huawei-cce
- Owner: artifactsystems
- License: apache-2.0
- Created: 2025-11-24T10:33:55.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2026-01-13T06:40:49.000Z (5 months ago)
- Last Synced: 2026-01-13T09:45:31.918Z (5 months ago)
- Topics: cce, cloud-container-engine, huaweicloud, huaweicloud-cce, huaweicloud-cce-cluster, kubernetes, terraform, terraform-module
- Language: HCL
- Homepage:
- Size: 48.8 KB
- Stars: 3
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# HuaweiCloud CCE Terraform Module
Terraform module which creates CCE (Cloud Container Engine) resources on HuaweiCloud.
## Usage
```hcl
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"
}
}
```
## Features
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
## Examples
See the [examples](./examples) directory for detailed usage examples:
- [simple](./examples/simple) - Basic CCE cluster (with VPC and subnet)
- [node-pool](./examples/node-pool) - CCE cluster with node pool
- [addon](./examples/addon) - CCE cluster with addons (autoscaler, metrics-server)
- [log-config](./examples/log-config) - CCE cluster with log configuration
## Modules
This module contains the following submodules:
- [addon](./modules/addon) - CCE addon management
- [node-pool](./modules/node-pool) - CCE node pool management
## Requirements
| Name | Version |
|------|---------|
| terraform | >= 1.0 |
| huaweicloud | >= 1.79.0 |
## Providers
| Name | Version |
|------|---------|
| huaweicloud | >= 1.79.0 |
## Inputs
See [variables.tf](./variables.tf) for detailed input variables.
## Outputs
See [outputs.tf](./outputs.tf) for detailed output values.
Main outputs:
- `cluster_id`: CCE cluster ID
- `cluster_name`: CCE cluster name
- `cluster_endpoint`: Kubernetes API server endpoint
- `cluster_kube_config_raw`: Raw Kubernetes config for kubectl
- `node_pool_ids`: Map of node pool IDs
- `addon_ids`: Map of addon IDs
- `log_config_id`: Log configuration ID
## Contributing
Report issues/questions/feature requests in the [issues](https://github.com/artifactsystems/terraform-huawei-cce/issues/new) section.
Full contributing [guidelines are covered here](.github/CONTRIBUTING.md).