openstack_containerinfra_clustertemplate_v1

Manages a V1 Magnum cluster template resource within OpenStack.

Example Usage

Create a Cluster template

resource "openstack_containerinfra_clustertemplate_v1" "clustertemplate_1" {
  name                  = "clustertemplate_1"
  image                 = "Fedora-Atomic-27"
  coe                   = "kubernetes"
  flavor                = "m1.small"
  master_flavor         = "m1.medium"
  dns_nameserver        = "1.1.1.1"
  docker_storage_driver = "devicemapper"
  docker_volume_size    = 10
  volume_driver         = "cinder"
  network_driver        = "flannel"
  server_type           = "vm"
  master_lb_enabled     = true
  floating_ip_enabled   = false

  labels = {
    kube_tag                         = "1.11.1"
    kube_dashboard_enabled           = "true"
    prometheus_monitoring            = "true"
    influx_grafana_dashboard_enabled = "true"
  }
}

Argument reference

The following arguments are supported:

Attributes reference

The following attributes are exported:

Import

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

$ terraform import openstack_containerinfra_clustertemplate_v1.clustertemplate_1 b9a45c5c-cd03-4958-82aa-b80bf93cb922