-
Hello, I am trying to create a Terraform Module to create a cluster in the Hetzner Cloud with private network usage. My current configuration is basically working. You can view it here: https://github.com/hcloud-talos/terraform-hcloud-talos 1. Question (answered)I have set up a firewall where only my client IP has access to Talos API and Kubernetes API. What surprises me is that talosctl dashboard --nodes x.x.x.x --endpoints x.x.x.x <- working
talosctl dashboard --nodes x.x.x.x --endpoints y.y.y.y <- not working If I open the Talos API for all IPs in the firewall, then EDIT:
TLDR;Yes you can force Talos to use the internal IP by calling 2. QuestionUnfortunately I have another question: I am trying to define the interfaces explicitly in this branch: https://github.com/hcloud-talos/terraform-hcloud-talos/blob/explicit_interfaces/patches/machine-patch.yaml.tmpl The configuration then looks like this: machine:
network:
interfaces:
- interface: eth0
addresses:
- x.x.x.x/32
routes:
- network: 172.31.1.1/32
gateway: ""
- network: 0.0.0.0/0
gateway: 172.31.1.1
dhcp: false
- interface: eth1
addresses:
- 10.0.0.101/24
routes:
- network: 10.0.0.1/24
gateway: ""
- network: 10.0.0.0/16
gateway: 10.0.0.1
dhcp: false If I use
shouldn't the gateway `10.0.0.1 also be in there? Thank you very much for your help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
it's not a gateway in your config, it just says 10.0.0.1/24 are directly attached to |
Beta Was this translation helpful? Give feedback.
it's not a gateway in your config, it just says 10.0.0.1/24 are directly attached to
eth1
.