From 0543e3011817211445da32afe1eaa60ded44c673 Mon Sep 17 00:00:00 2001 From: David Runge Date: Wed, 16 Dec 2020 21:24:26 +0100 Subject: Add kubernetes example using libvirt provider k8s_cluster/*: Add a terraform-provider-libvirt based examples to semi-automatically create a k8s cluster for testing. --- k8s_cluster/variables.tf | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 k8s_cluster/variables.tf (limited to 'k8s_cluster/variables.tf') diff --git a/k8s_cluster/variables.tf b/k8s_cluster/variables.tf new file mode 100644 index 0000000..dca2f82 --- /dev/null +++ b/k8s_cluster/variables.tf @@ -0,0 +1,34 @@ + +variable "libvirt_provider_uri" { + type = string + description = "Libvirt provider's URI" + default = "qemu:///system" +} + +variable "vm_ssh_private_key" { + type = string + description = "Location of SSH private key for VMs" +} + +variable "vm_image_source" { + type = string + description = "Image source, which can be path on host's filesystem or URL." +} + +variable "control_plane_count" { + type = number + description = "The amount of initial control-plane nodes" + default = 2 +} + +variable "node_count" { + type = number + description = "The amount of initial worker nodes" + default = 2 +} + +variable "load_balancer_count" { + type = number + description = "The amount of initial load balancers" + default = 1 +} -- cgit v1.2.3-70-g09d2