talm icon indicating copy to clipboard operation
talm copied to clipboard

`talm template` does not correctly generate validSubnets, endpoint, and advertisedSubnets

Open Karabass-OFF opened this issue 1 year ago • 1 comments

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!

Karabass-OFF avatar Oct 01 '24 13:10 Karabass-OFF

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.

kvaps avatar Oct 01 '24 15:10 kvaps