updated terraform examples
This commit is contained in:
11
terraform/rke2-terraform/main.tf
Normal file
11
terraform/rke2-terraform/main.tf
Normal file
@ -0,0 +1,11 @@
|
||||
module "controlplane" {
|
||||
source = "remche/rke2/openstack"
|
||||
cluster_name = var.cluster_name
|
||||
dns_servers = var.dns_servers
|
||||
write_kubeconfig = true
|
||||
image_name = "Ubuntu 20.04 - Focal Fossa - 64-bit - Cloud Based Image"
|
||||
flavor_name = "m1.medium"
|
||||
public_net_name = "public1"
|
||||
use_ssh_agent = false
|
||||
ssh_key_file = "/root/.ssh/id_rsa"
|
||||
}
|
5
terraform/rke2-terraform/outputs.tf
Normal file
5
terraform/rke2-terraform/outputs.tf
Normal file
@ -0,0 +1,5 @@
|
||||
output "server_ip" {
|
||||
description = "Server floating IP"
|
||||
value = module.controlplane.floating_ip[0]
|
||||
sensitive = true
|
||||
}
|
9
terraform/rke2-terraform/variables.tf
Normal file
9
terraform/rke2-terraform/variables.tf
Normal file
@ -0,0 +1,9 @@
|
||||
variable "cluster_name" {
|
||||
type = string
|
||||
default = "minimal"
|
||||
}
|
||||
|
||||
variable "dns_servers" {
|
||||
type = list(string)
|
||||
default = ["192.168.76.253"]
|
||||
}
|
Reference in New Issue
Block a user