aenix-io / talm

Manage Talos Linux the GitOps Way!
Mozilla Public License 2.0
117 stars 4 forks source link

Bug generate template #25

Open Karabass-OFF opened 2 days ago

Karabass-OFF commented 2 days 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 2 days 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.