Skip to content

Interface default configuration to enable VIP when templating with talm #78

@lb0o

Description

@lb0o

Hi,

The default templating used ipv6 gateway but the VIP was not addressable.
I wonder if enabling dhcp:true as default will ease configuration (hence ipv4?).

I solved VIP configuration by using dhcp:true from the doc

As mentioned in https://www.talos.dev/v1.11/talos-guides/network/vip/

A minimal VIP machine config setup is:

machine:
  network:
    interfaces:
    - interface: eth0
      dhcp: true
      vip:
        ip: 192.168.0.15

The default generated template VIP was templated using ipv6 gateway address

    interfaces:
      - interface: eth0
        addresses:
          - 192.168.0.20/24
        routes:
          - network: 0.0.0.0/0
            gateway: <ipv6-gateway-address>
        vip:
          ip: 192.168.0.15

Here is the generated template using talm template -e 192.168.0.20 -n 192.168.0.20 -t templates/controlplane.yaml -i --full --offline

    interfaces:
      - routes:
          - network: 0.0.0.0/0
            gateway: ""
        vip:
          ip: 192.168.0.15

debug commands used:

node=192.168.0.20
talosctl -n $node -e $node get links
talosctl -n $node -e $node get addresses

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions