It is possible to set a private IP in endpoint for single node clusters? #6255
-
Hello, I am trying to configure a single node clusters. I am wondering if it is possible to set a private IP in the cluster endpoint for a single node cluster. I am creating Talos clusters using AWS. Here is my code (using sideroLabs terraform module for Talos):
The same code using a load balancer dns as the cluster endpoint worked fine. Now, that I am trying to use a private IP (for this example is 10.0.0.19, but I also tried with 127.0.0.1), it looks like all talos services are okay:
But I can not connect to kubernetes cluster. I am getting the kubeconfig file using the command
I have tried to add the external IP to the certSANs field, but I am getting the same error. Any idea what I should do to be available to run |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 8 replies
-
when you run when you run so you either:
The error you showed means that your |
Beta Was this translation helpful? Give feedback.
-
I am getting the correct kubeconfig file. I forgot to add in the tiket that I am running the command So when I run the
As I am using the ec2 private IP in the endpoint when generating the talos configuration, it is also adding the private IP to As the EC2 is configured with the So for an external IP 1.2.3.4, I edit the server field to |
Beta Was this translation helpful? Give feedback.
-
I do not have a clear idea what I was doing wrong..I started again using for all the commands Apart from the problem of the connection to the cluster, the answer to the original question "It is possible to set a private IP in endpoint for single node clusters?" is yes. I have tried using the private IP and the localhost Thanks for your time! 🙇♂️ |
Beta Was this translation helpful? Give feedback.
I do not have a clear idea what I was doing wrong..I started again using for all the commands
--talosconfig
and--kubeconfig
and it worked. If I find what was the origin of the problem I will add a new comment here.Apart from the problem of the connection to the cluster, the answer to the original question "It is possible to set a private IP in endpoint for single node clusters?" is yes. I have tried using the private IP and the localhost
127.0.0.1
and in both cases it have worked. The only thing I have modified in these cases is editting the server for the public ip of the ec2 (after getting the kubeconfigtalosctl --talosconfig talosconfig kubeconfig .
)Thanks for your time! 🙇♂️