aenix-io / talm

Manage Talos Linux the GitOps Way!
Mozilla Public License 2.0
136 stars 6 forks source link

Bug generate template #25

Open Karabass-OFF opened 1 month ago

Karabass-OFF commented 1 month ago

My k8s network is 192.168.201.0/24. Talm correctly generates interfaces, routes, name servers. My command to generate template: bash talm -n 192.168.201.201.10 -e 192.168.201.201.10 template -t templates/controlplane.yaml > nodes/kub-t10.yaml Does not correctly generate validSubnets, endpoint, advertisedSubnets as shown below. Should be values from network 192.168.201.0/24

machine:
  type: controlplane
  kubelet:
    nodeIP:
      validSubnets:
        - 192.168.100.0/24

and

cluster:
  controlPlane:
    endpoint: https://192.168.100.10:6443

also

  etcd:
    advertisedSubnets:
      - 192.168.100.0/24

Thank you!

kvaps commented 1 month ago

These values are taken from your values.yaml file, but it sounds reasonable to add template logic to automatically calculate ips from the node configuration.

I will think about the implementation.