summaryrefslogtreecommitdiffstats
path: root/k8s_cluster/variables.tf
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2020-12-16 21:24:26 +0100
committerDavid Runge <dave@sleepmap.de>2020-12-16 21:24:26 +0100
commit0543e3011817211445da32afe1eaa60ded44c673 (patch)
tree1ff4a268a70f0474a827b28ebbfe1de037138a97 /k8s_cluster/variables.tf
downloadterraform-0543e3011817211445da32afe1eaa60ded44c673.tar.gz
terraform-0543e3011817211445da32afe1eaa60ded44c673.tar.bz2
terraform-0543e3011817211445da32afe1eaa60ded44c673.tar.xz
terraform-0543e3011817211445da32afe1eaa60ded44c673.zip
Add kubernetes example using libvirt providerHEADmaster
k8s_cluster/*: Add a terraform-provider-libvirt based examples to semi-automatically create a k8s cluster for testing.
Diffstat (limited to 'k8s_cluster/variables.tf')
-rw-r--r--k8s_cluster/variables.tf34
1 files changed, 34 insertions, 0 deletions
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
+}