diff --git a/README.md b/README.md index e8caa8e..af1e976 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,8 @@ module "cce2_cluster" { node_os = "CentOS 7.5" // Can be "EulerOS 2.5" or "CentOS 7.5" node_runtime = "containerd // Valid values are docker and containerd" key_pair = "my-key" + + annotations = { "cluster.install.addons.external/install": "[{\"addonTemplateName\":\"icagent\"}]" } nodes_list = [ { diff --git a/main.tf b/main.tf index 32607d5..123e00a 100644 --- a/main.tf +++ b/main.tf @@ -8,6 +8,7 @@ resource "flexibleengine_cce_cluster_v3" "cce_cluster" { container_network_type = var.container_network_type eip = var.cluster_eip description = var.cluster_desc + annotations = var.annotations extend_param = var.extend_param } diff --git a/variables.tf b/variables.tf index d913b90..608e0b7 100644 --- a/variables.tf +++ b/variables.tf @@ -76,6 +76,12 @@ variable "key_pair" { type = string } +variable "annotations" { + description = "Cluster annotation, key/value pair format" + type = map(string) + default = {} +} + variable "extend_param" { description = "Extended Parameters" type = map(string)