Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug generate template #25

Open
Karabass-OFF opened this issue Oct 1, 2024 · 1 comment
Open

Bug generate template #25

Karabass-OFF opened this issue Oct 1, 2024 · 1 comment

Comments

@Karabass-OFF
Copy link

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
Copy link
Member

kvaps commented Oct 1, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants