-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Document Network Configurators (#363)
* Document Network Configurators Signed-off-by: Andrea Mazzotti <[email protected]>
- Loading branch information
1 parent
708ea30
commit 3f7c7f8
Showing
7 changed files
with
306 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
apiVersion: ipam.cluster.x-k8s.io/v1alpha2 | ||
kind: InClusterIPPool | ||
metadata: | ||
name: elemental-inventory-pool | ||
namespace: fleet-default | ||
spec: | ||
addresses: | ||
- 192.168.122.150-192.168.122.200 | ||
prefix: 24 | ||
gateway: 192.168.122.1 | ||
--- | ||
apiVersion: ipam.cluster.x-k8s.io/v1alpha2 | ||
kind: InClusterIPPool | ||
metadata: | ||
name: elemental-secondary-pool | ||
namespace: fleet-default | ||
spec: | ||
addresses: | ||
- 172.16.0.150-172.16.0.200 | ||
prefix: 24 | ||
gateway: 172.16.0.1 | ||
--- | ||
apiVersion: elemental.cattle.io/v1beta1 | ||
kind: MachineRegistration | ||
metadata: | ||
name: fire-nodes | ||
namespace: fleet-default | ||
spec: | ||
machineName: m-${System Information/UUID} | ||
config: | ||
network: | ||
configurator: nmc | ||
ipAddresses: | ||
inventory-ip: | ||
apiGroup: ipam.cluster.x-k8s.io | ||
kind: InClusterIPPool | ||
name: elemental-inventory-pool | ||
secondary-ip: | ||
apiGroup: ipam.cluster.x-k8s.io | ||
kind: InClusterIPPool | ||
name: elemental-secondary-pool | ||
config: | ||
dns-resolver: | ||
config: | ||
server: | ||
- 192.168.122.1 | ||
search: [] | ||
routes: | ||
config: | ||
- destination: 0.0.0.0/0 | ||
next-hop-interface: enp1s0 | ||
next-hop-address: 192.168.122.1 | ||
metric: 150 | ||
table-id: 254 | ||
- destination: 172.16.0.1/24 | ||
next-hop-interface: enp8s0 | ||
next-hop-address: 172.16.0.1 | ||
metric: 150 | ||
table-id: 254 | ||
interfaces: | ||
- name: enp1s0 | ||
type: ethernet | ||
description: Main-NIC | ||
state: up | ||
ipv4: | ||
enabled: true | ||
dhcp: false | ||
address: | ||
- ip: "{inventory-ip}" | ||
prefix-length: 24 | ||
ipv6: | ||
enabled: false | ||
- name: enp8s0 | ||
type: ethernet | ||
description: Secondary-NIC | ||
state: up | ||
ipv4: | ||
enabled: true | ||
dhcp: false | ||
address: | ||
- ip: "{secondary-ip}" | ||
prefix-length: 24 | ||
ipv6: | ||
enabled: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
apiVersion: ipam.cluster.x-k8s.io/v1alpha2 | ||
kind: InClusterIPPool | ||
metadata: | ||
name: elemental-inventory-pool | ||
namespace: fleet-default | ||
spec: | ||
addresses: | ||
- 192.168.122.150-192.168.122.200 | ||
prefix: 24 | ||
gateway: 192.168.122.1 | ||
--- | ||
apiVersion: ipam.cluster.x-k8s.io/v1alpha2 | ||
kind: InClusterIPPool | ||
metadata: | ||
name: elemental-secondary-pool | ||
namespace: fleet-default | ||
spec: | ||
addresses: | ||
- 172.16.0.150-172.16.0.200 | ||
prefix: 24 | ||
gateway: 172.16.0.1 | ||
--- | ||
apiVersion: elemental.cattle.io/v1beta1 | ||
kind: MachineRegistration | ||
metadata: | ||
name: fire-nodes | ||
namespace: fleet-default | ||
spec: | ||
machineName: test-${System Information/UUID} | ||
config: | ||
network: | ||
configurator: "nmconnections" | ||
ipAddresses: | ||
inventory-ip: | ||
apiGroup: ipam.cluster.x-k8s.io | ||
kind: InClusterIPPool | ||
name: elemental-inventory-pool | ||
secondary-ip: | ||
apiGroup: ipam.cluster.x-k8s.io | ||
kind: InClusterIPPool | ||
name: elemental-secondary-pool | ||
config: | ||
enp1s0: | | ||
[connection] | ||
id=Wired connection 1 | ||
type=ethernet | ||
interface-name=enp1s0 | ||
[ipv4] | ||
address1={inventory-ip}/24,192.168.1.1 | ||
dns=192.168.122.1; | ||
method=manual | ||
route1=0.0.0.0/0,192.168.122.1 | ||
[ipv6] | ||
method=disabled | ||
enp8s0: | | ||
[connection] | ||
id=Wired connection 2 | ||
type=ethernet | ||
interface-name=enp8s0 | ||
[ipv4] | ||
address1={secondary-ip}/24,172.16.0.1 | ||
method=manual | ||
route1=172.16.0.0/24,172.16.0.1,150 | ||
[ipv6] | ||
method=disabled |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
apiVersion: ipam.cluster.x-k8s.io/v1alpha2 | ||
kind: InClusterIPPool | ||
metadata: | ||
name: elemental-inventory-pool | ||
namespace: fleet-default | ||
spec: | ||
addresses: | ||
- 192.168.122.150-192.168.122.200 | ||
prefix: 24 | ||
gateway: 192.168.122.1 | ||
--- | ||
apiVersion: ipam.cluster.x-k8s.io/v1alpha2 | ||
kind: InClusterIPPool | ||
metadata: | ||
name: elemental-secondary-pool | ||
namespace: fleet-default | ||
spec: | ||
addresses: | ||
- 172.16.0.150-172.16.0.200 | ||
prefix: 24 | ||
gateway: 172.16.0.1 | ||
--- | ||
apiVersion: elemental.cattle.io/v1beta1 | ||
kind: MachineRegistration | ||
metadata: | ||
name: fire-nodes | ||
namespace: fleet-default | ||
spec: | ||
machineName: m-${System Information/UUID} | ||
config: | ||
network: | ||
configurator: nmstate | ||
ipAddresses: | ||
inventory-ip: | ||
apiGroup: ipam.cluster.x-k8s.io | ||
kind: InClusterIPPool | ||
name: elemental-inventory-pool | ||
secondary-ip: | ||
apiGroup: ipam.cluster.x-k8s.io | ||
kind: InClusterIPPool | ||
name: elemental-secondary-pool | ||
config: | ||
dns-resolver: | ||
config: | ||
server: | ||
- 192.168.122.1 | ||
search: [] | ||
routes: | ||
config: | ||
- destination: 0.0.0.0/0 | ||
next-hop-interface: enp1s0 | ||
next-hop-address: 192.168.122.1 | ||
metric: 150 | ||
table-id: 254 | ||
- destination: 172.16.0.1/24 | ||
next-hop-interface: enp8s0 | ||
next-hop-address: 172.16.0.1 | ||
metric: 150 | ||
table-id: 254 | ||
interfaces: | ||
- name: enp1s0 | ||
type: ethernet | ||
description: Main-NIC | ||
state: up | ||
ipv4: | ||
enabled: true | ||
dhcp: false | ||
address: | ||
- ip: "{inventory-ip}" | ||
prefix-length: 24 | ||
ipv6: | ||
enabled: false | ||
- name: enp8s0 | ||
type: ethernet | ||
description: Secondary-NIC | ||
state: up | ||
ipv4: | ||
enabled: true | ||
dhcp: false | ||
address: | ||
- ip: "{secondary-ip}" | ||
prefix-length: 24 | ||
ipv6: | ||
enabled: false |
Oops, something went wrong.