File tree 3 files changed +7
-1
lines changed
3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -17,3 +17,8 @@ output "cluster_name" {
17
17
description = " Name of cluster"
18
18
value = var. cluster_name
19
19
}
20
+
21
+ output "kubeconfig" {
22
+ description = " Kubeconfig content"
23
+ value = data. talos_cluster_kubeconfig . this . kubeconfig_raw
24
+ }
Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ resource "local_file" "kubeconfig" {
130
130
filename = local. path_to_kubeconfig_file
131
131
lifecycle {
132
132
ignore_changes = [content ]
133
- }
133
+ }
134
134
}
135
135
136
136
# Does currently not work because of the nodes reachability from the internet.
Original file line number Diff line number Diff line change @@ -122,6 +122,7 @@ module "talos" {
122
122
| ------| -------------|
123
123
| <a name =" output_cluster_name " ></a > [ cluster\_ name] ( #output\_ cluster\_ name ) | Name of cluster |
124
124
| <a name =" output_elb_dns_name " ></a > [ elb\_ dns\_ name] ( #output\_ elb\_ dns\_ name ) | Public ELB DNS name. |
125
+ | <a name =" output_kubeconfig " ></a > [ kubeconfig] ( #output\_ kubeconfig ) | Kubeconfig content |
125
126
| <a name =" output_path_to_kubeconfig_file " ></a > [ path\_ to\_ kubeconfig\_ file] ( #output\_ path\_ to\_ kubeconfig\_ file ) | The generated kubeconfig. |
126
127
| <a name =" output_path_to_talosconfig_file " ></a > [ path\_ to\_ talosconfig\_ file] ( #output\_ path\_ to\_ talosconfig\_ file ) | The generated talosconfig. |
127
128
<!-- END_TF_DOCS -->
You can’t perform that action at this time.
0 commit comments