Initial Implementation of K3S Cluster with YoshiK3S

This commit is contained in:
2024-07-11 03:37:34 -03:00
parent 60cf7ab1b2
commit 9146eebe73
4 changed files with 163 additions and 44 deletions

35
kubernetes/config.tf Normal file
View File

@@ -0,0 +1,35 @@
variable "cluster_token" {
type = string
description = "cluster token"
sensitive = true
}
variable "cluster_domain" {
type = string
description = "cluster domain"
}
variable "master_server_address" {
type = string
description = "master server address"
}
variable "cluster_main_node" {
type = list(object({
host = string
port = string
user = string
private_key = string
}))
description = "map of objects - main cluster nodes - [host, port]"
}
variable "cluster_worker_node" {
type = list(object({
host = string
port = string
user = string
private_key = string
}))
description = "map of objects - worker cluster nodes - [host, port]"
}