networking
This commit is contained in:
38
cluster/nmstate/overlays/hub/iscsi-nad.yaml
Normal file
38
cluster/nmstate/overlays/hub/iscsi-nad.yaml
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
---
|
||||||
|
apiVersion: k8s.cni.cncf.io/v1
|
||||||
|
kind: NetworkAttachmentDefinition
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
description: Native VLAN connection for iSCSI
|
||||||
|
name: vlan121-localnet
|
||||||
|
namespace: default
|
||||||
|
spec:
|
||||||
|
config: |-
|
||||||
|
{
|
||||||
|
"name": "iscsi-net",
|
||||||
|
"cniVersion": "0.3.1",
|
||||||
|
"type": "vlan",
|
||||||
|
"master": "enp1s0f0",
|
||||||
|
"mtu": 1500,
|
||||||
|
"vlanId": 121,
|
||||||
|
"linkInContainer": false,
|
||||||
|
"ipam": {
|
||||||
|
"type": "static",
|
||||||
|
"addresses": [
|
||||||
|
{
|
||||||
|
"address": "10.10.121.10/24"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
# {
|
||||||
|
# "cniVersion": "0.3.1",
|
||||||
|
# "name": "bridge-net",
|
||||||
|
# "type": "bridge",
|
||||||
|
# "isGateway": true,
|
||||||
|
# "vlan": 2,
|
||||||
|
# "ipam": {
|
||||||
|
# "type": "dhcp"
|
||||||
|
# }
|
||||||
|
# }
|
||||||
@@ -6,4 +6,4 @@ commonAnnotations:
|
|||||||
|
|
||||||
resources:
|
resources:
|
||||||
- ../../base
|
- ../../base
|
||||||
- ocp-storage-vlan.yaml
|
#- ocp-storage-vlan.yaml
|
||||||
|
|||||||
@@ -2,38 +2,29 @@
|
|||||||
apiVersion: nmstate.io/v1
|
apiVersion: nmstate.io/v1
|
||||||
kind: NodeNetworkConfigurationPolicy
|
kind: NodeNetworkConfigurationPolicy
|
||||||
metadata:
|
metadata:
|
||||||
name: vlan121-localnet
|
name: storage-network-ocp-hub
|
||||||
spec:
|
spec:
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
kubernetes.io/hostname: ocp-hub
|
kubernetes.io/hostname: ocp-hub
|
||||||
|
|
||||||
desiredState:
|
desiredState:
|
||||||
ovn:
|
interfaces:
|
||||||
bridge-mappings:
|
- name: enp1s0f0.121
|
||||||
- localnet: vlan121-net
|
state: up
|
||||||
bridge: br-ex
|
type: vlan
|
||||||
vlan-id: 121
|
vlan:
|
||||||
ip-address:
|
base-iface: enp1s0f0
|
||||||
- ip: 10.10.121.10
|
id: 121
|
||||||
prefix-length: 24
|
- bridge:
|
||||||
state: present
|
port:
|
||||||
|
- name: enp1s0f0.121
|
||||||
|
ipv4:
|
||||||
|
address:
|
||||||
|
- ip: 10.10.121.10
|
||||||
|
prefix-length: 24
|
||||||
|
enabled: true
|
||||||
|
name: br-iscsi
|
||||||
|
state: up
|
||||||
|
type: linux-bridge
|
||||||
|
description: OVS bridge with enp1s0f0 as a port on VLAN 121
|
||||||
|
|
||||||
|
|
||||||
# interfaces:
|
|
||||||
# - name: enp1s0.121
|
|
||||||
# state: up
|
|
||||||
# type: vlan
|
|
||||||
# vlan:
|
|
||||||
# base-iface: enp1s0
|
|
||||||
# id: 121
|
|
||||||
# - bridge:
|
|
||||||
# port:
|
|
||||||
# - name: enp1s0.121
|
|
||||||
# ipv4:
|
|
||||||
# address:
|
|
||||||
# - ip: 10.10.121.10
|
|
||||||
# prefix-length: 24
|
|
||||||
# enabled: true
|
|
||||||
# name: storage-network
|
|
||||||
# state: up
|
|
||||||
# type: linux-bridge
|
|
||||||
# description: Linux bridge with enp1s0 as a port on VLAN 121
|
|
||||||
|
|||||||
Reference in New Issue
Block a user