init: copied modules from lawndale-infra

This commit is contained in:
2022-05-26 00:40:29 +02:00
commit 414feb48ee
39 changed files with 1435 additions and 0 deletions

View File

@@ -0,0 +1,52 @@
variable "namespace" {
type = string
description = "namespace for resources"
default = "kube-system"
}
variable "vxlan_id" {
type = number
description = "VXLAN ID (VNI)"
}
variable "vxlan_port" {
type = number
description = "UDP port to use for sending encapsulated packets"
}
variable "flannel_image" {
type = string
default = "rancher/mirrored-flannelcni-flannel:v0.17.0"
}
variable "flannel_cni_plugin_image" {
type = string
default = "rancher/mirrored-flannelcni-flannel-cni-plugin:v1.0.1"
}
variable "cluster_role_name" {
type = string
description = "Name of the cluster role flannel will use"
default = "flannel"
}
variable "create_cluster_role" {
type = bool
description = "Weather or not to create a suitable cluster role or use an already exisiting specified by cluster_role_name variable"
default = true
}
variable "daemonset_name" {
type = string
description = "Name of the daeomonset"
default = "flannel"
}
variable "node_selector_os" {
type = list(string)
description = "Which kubernetes.io/os node-label to match for execution"
default = ["linux"]
}
variable "cluster_cidr" {
type = string
description = "ClusterCIDR"
}