You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This repository was constructed by following the instructions outlined in the enlightening article mentioned below. I have made certain modifications to adapt it to my specific cluster configuration. It is worth noting that the datasets or datastores on my proxmox might have different names compared to those in your proxmox setup. Therefore, it is essential to make the necessary adjustments according to your own setup. My proxmox cluster consists of three nodes and utilizes the ceph storage solution for efficient management of virtual machines across all nodes.
3
+
Terraform Kubernetes Infrastructure as Code (IAC)
5
4
5
+
This repository was created by following the instructions in the article linked below, with modifications to suit my specific cluster configuration. Note that the datasets or datastores on my Proxmox setup may differ from yours, so adjust accordingly. My Proxmox cluster consists of three nodes and uses Ceph for efficient virtual machine management across all nodes.
6
6
7
-
Article: [Talos Cluster on Proxmox with Terraform](https://olav.ninja/talos-cluster-on-proxmox-with-terraform) by Olav
7
+
**Article**: [Talos Cluster on Proxmox with Terraform](https://olav.ninja/talos-cluster-on-proxmox-with-terraform) by Olav
8
+
9
+
---
8
10
9
11
## Additional Steps
10
12
11
-
After setting up the cluster, there are a few additional steps that may be helpful to others.
13
+
After setting up the cluster, you may find the following steps helpful.
12
14
13
15
### Connect to the Talos Kubernetes Cluster
14
16
15
-
To connect to your Talos Kubernetes cluster using the outputs from Terraform, you need to set up your local environment with the correct configuration files. Follow these steps:
16
-
17
-
1. Save the `kubeconfig` and `talosconfig` outputs to files on your local machine. Run the following commands:
17
+
To connect to your Talos Kubernetes cluster using Terraform outputs, configure your local environment as follows:
18
18
19
+
1. Save the `kubeconfig` and `talosconfig` outputs to files on your local machine:
This assumes you have ~/.kube/config and ~/.talos/config as the default locations for Kubernetes and Talos configurations. Adjust the file paths if necessary.
40
-
Verify File Permissions
41
-
Ensure the permissions for these files are set correctly to avoid any security issues:
# - **main.tf**: This file contains the main configuration for managing the Talos cluster on Proxmox, including provider definitions, resource configurations, and data blocks for retrieving machine configurations.
3
-
# - **providers.tf**: This file defines the required providers for the Terraform configuration, specifying the source and version for each provider.
4
-
# - **variables.tf**: This file defines the variables used in the Terraform configuration, allowing for customization of the cluster name, IP addresses, and other settings.
5
-
# - **virtual_machines.tf**: This file defines the virtual machines to be created in the Proxmox virtual environment, specifying their configurations such as CPU, memory, disk, and network settings.
6
-
# - **cluster.tf**: This file contains the configuration for the Talos cluster, including the creation of machine secrets, retrieval of machine configurations, application of configurations to control plane and worker nodes, bootstrapping the control plane, and retrieving the health status and kubeconfig for the cluster.
7
-
# This resource creates a new Talos machine secrets resource.
0 commit comments