okustera_kubernetes_cluster_template (Resource)
The okustera_kubernetes_cluster_template resource defines reusable infrastructure templates in OpenStack Magnum specifying the operating system image, container networking (Calico, Flannel), and hardware sizing profiles.
Example Usage
Calico Kubernetes Template with External Gateway
resource "okustera_kubernetes_cluster_template" "fedora_k8s" {
name = "fedora-k8s-calico"
image_id = "fedora-coreos-39"
keypair_id = "admin-ssh-key"
master_flavor_id = "m1.medium"
flavor_id = "m1.large"
network_driver = "calico"
coe = "kubernetes"
public = false
}
Schema
Required
name(String) Unique name of the template.image_id(String) Glance image UUID or name to boot nodes from.
Optional
keypair_id(String) SSH keypair name for node login.external_network_id(String) Neutron external network UUID for public internet routing.master_flavor_id(String) Flavor UUID or name for master nodes.flavor_id(String) Flavor UUID or name for worker nodes.network_driver(String) CNI network plugin (e.g.calico,flannel). Defaults tocalico.coe(String) Container Orchestration Engine. Defaults tokubernetes.public(Boolean) Whether this template is visible to other projects. Defaults tofalse.tls_disabled(Boolean) Disables TLS certificate encryption between cluster components. Defaults tofalse.
Read-Only Attributes
id(String) Unique template UUID.created_at(String) Creation timestamp.
Import
Existing cluster templates can be imported using their UUID:
terraform import okustera_kubernetes_cluster_template.fedora_k8s <template_uuid>