feat: Add talosconfig and kubeconfig outputs
This commit is contained in:
parent
112f39fbd4
commit
c10aded847
3 changed files with 23 additions and 0 deletions
|
|
@ -95,3 +95,8 @@ resource "talos_machine_bootstrap" "talos_machine_bootstrap" {
|
||||||
client_configuration = talos_machine_secrets.machine_secrets.client_configuration
|
client_configuration = talos_machine_secrets.machine_secrets.client_configuration
|
||||||
node = var.talos_nodes[0].ipv4_address
|
node = var.talos_nodes[0].ipv4_address
|
||||||
}
|
}
|
||||||
|
|
||||||
|
resource "talos_cluster_kubeconfig" "kubeconfig" {
|
||||||
|
client_configuration = talos_machine_secrets.machine_secrets.client_configuration
|
||||||
|
node = var.node_config.cluster_endpoint
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,9 @@
|
||||||
|
output "talosconfig" {
|
||||||
|
value = data.talos_client_configuration.talosconfig.talos_config
|
||||||
|
sensitive = true
|
||||||
|
}
|
||||||
|
|
||||||
|
output "kubeconfig" {
|
||||||
|
value = talos_cluster_kubeconfig.kubeconfig
|
||||||
|
sensitive = true
|
||||||
|
}
|
||||||
9
pve01.wheatley.in/k8s-wheatley/outputs.tf
Normal file
9
pve01.wheatley.in/k8s-wheatley/outputs.tf
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
output "talosconfig" {
|
||||||
|
value = module.talos-bootstrap.talosconfig
|
||||||
|
sensitive = true
|
||||||
|
}
|
||||||
|
|
||||||
|
output "kubeconfig" {
|
||||||
|
value = module.talos-bootstrap.kubeconfig
|
||||||
|
sensitive = true
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue