» flexibleengine_cce_cluster_v3

Provides a cluster resource (CCE).

» Example Usage

    variable "flavor_id" { }
    variable "vpc_id" { }
    variable "subnet_id" { }

    resource "flexibleengine_cce_cluster_v3" "cluster_1" {
     name = "cluster"
     cluster_type= "VirtualMachine"
     flavor_id= "${var.flavor_id}"
     vpc_id= "${var.vpc_id}"
     subnet_id= "${var.subnet_id}"
     container_network_type= "overlay_l2"
     description= "Create cluster"
    }

» Argument Reference

The following arguments are supported:

  • name - (Required) Cluster name. Changing this parameter will create a new cluster resource.

  • labels - (Optional) Cluster tag, key/value pair format. Changing this parameter will create a new cluster resource.

  • annotations - (Optional) Cluster annotation, key/value pair format. Changing this parameter will create a new cluster resource.

  • flavor_id - (Required) Cluster specifications. Changing this parameter will create a new cluster resource.

  • cluster_version - (Optional) For the cluster version, possible value is v1.9.7-r1.

  • cluster_type - (Required) Cluster Type, Changing this parameter will create a new cluster resource.

  • description - (Optional) Cluster description.

  • billing_mode - (Optional) Charging mode of the cluster, which is 0 (on demand). Changing this parameter will create a new cluster resource.

  • extend_param - (Optional) Extended parameter. Changing this parameter will create a new cluster resource.

hostNetwok - (Required) Node network parameters

  • vpc_id - (Required) The ID of the VPC used to create the node. Changing this parameter will create a new cluster resource.

  • subnet_id - (Required) The ID of the subnet used to create the node. Changing this parameter will create a new cluster resource.

  • highway_subnet_id - (Optional) The ID of the high speed network used to create bare metal nodes. Changing this parameter will create a new cluster resource.

container_network_type - (Required) Container network parameters.

  • container_network_cidr - (Optional) Container network segment. Changing this parameter will create a new cluster resource.

» Attributes Reference

All above argument parameters can be exported as attribute parameters along with attribute reference.

  • id - Id of the cluster resource.

  • status - Cluster status information.

  • internal - The internal network address.

  • external - The external network address.

  • external_otc - The endpoint of the cluster to be accessed through API Gateway.

» Import

Cluster can be imported using the cluster id, e.g.

 $ terraform import flexibleengine_cce_cluster_v3.cluster_1 4779ab1c-7c1a-44b1-a02e-93dfc361b32d