blob: c60118d6a3f9d2eab0206514eb73ccb1ea984ca7 [file] [log] [blame]
apiVersion: ipam.mirantis.com/v1alpha1
kind: L2Template
metadata:
labels:
kaas.mirantis.com/provider: baremetal
cluster.sigs.k8s.io/cluster-name: mosk
name: mosk-base-l2
namespace: mosk
spec:
autoIfMappingPrio:
- provision
- enp
- eno
- ens
clusterRef: mosk
l3Layout:
- scope: namespace
subnetName: lcm-nw
- scope: namespace
subnetName: storage-frontend
- scope: namespace
subnetName: storage-backend
npTemplate: |-
version: 2
bonds:
bond0:
parameters:
mode: 802.3ad
interfaces:
- {{nic 3}}
- {{nic 5}}
bond1:
parameters:
mode: 802.3ad
interfaces:
- {{nic 2}}
- {{nic 4}}
ethernets:
{{nic 0}}:
dhcp4: false
dhcp6: false
match:
macaddress: {{mac 0}}
set-name: {{nic 0}}
mtu: 9000
addresses:
- {{ip "0:lcm-nw"}}
gateway4: {{gateway_from_subnet "lcm-nw"}}
nameservers:
addresses: {{nameservers_from_subnet "lcm-nw"}}
{{nic 2}}:
dhcp4: false
dhcp6: false
match:
macaddress: {{mac 2}}
set-name: {{nic 2}}
mtu: 9000
{{nic 3}}:
dhcp4: false
dhcp6: false
match:
macaddress: {{mac 3}}
set-name: {{nic 3}}
mtu: 9000
{{nic 4}}:
dhcp4: false
dhcp6: false
match:
macaddress: {{mac 4}}
set-name: {{nic 4}}
mtu: 9000
{{nic 5}}:
dhcp4: false
dhcp6: false
match:
macaddress: {{mac 4}}
set-name: {{nic 4}}
mtu: 9000
vlans:
pr-floating:
id: 2404
link: bond1
mtu: 9000
stor-frontend:
id: 2405
link: bond1
mtu: 9000
addresses:
- {{ip "stor-frontend:storage-frontend"}}
stor-backend:
id: 2406
link: bond1
mtu: 9000
addresses:
- {{ip "stor-backend:storage-backend"}}