Skip to content

Commit

Permalink
nncp
Browse files Browse the repository at this point in the history
  • Loading branch information
lmiccini committed May 2, 2024
1 parent 5a4d0b5 commit 9922724
Showing 1 changed file with 204 additions and 171 deletions.
375 changes: 204 additions & 171 deletions examples/va/pidone/control-plane/nncp/values.yaml
Original file line number Diff line number Diff line change
@@ -1,176 +1,209 @@
# local-config: referenced, but not emitted by kustomize
---
apiVersion: v1
kind: ConfigMap
metadata:
name: network-values
annotations:
config.kubernetes.io/local-config: "true"
data:
bridgeName: ospbr
ctlplane:
dnsDomain: ctlplane.example.com
endpoint_annotations:
metallb.universe.tf/address-pool: ctlplane
metallb.universe.tf/allow-shared-ip: ctlplane
metallb.universe.tf/loadBalancerIPs: 192.168.122.80
iface: enp6s0
lb_addresses:
- 192.168.122.80-192.168.122.90
mtu: 1500
net-attach-def: "{\n \"cniVersion\": \"0.3.1\",\n \"name\": \"ctlplane\",\n
\ \"type\": \"macvlan\",\n \"master\": \"ospbr\",\n \"ipam\": {\n \"type\":
\"whereabouts\",\n \"range\": \"192.168.122.0/24\",\n \"range_start\":
\"192.168.122.30\",\n \"range_end\": \"192.168.122.70\"\n }\n}\n"
prefix-length: 24
subnets:
- allocationRanges:
- end: 192.168.122.120
start: 192.168.122.100
- end: 192.168.122.200
start: 192.168.122.150
cidr: 192.168.122.0/24
gateway: 192.168.122.1
name: subnet1
datacentre:
net-attach-def: "{\n \"cniVersion\": \"0.3.1\",\n \"name\": \"datacentre\",\n
\ \"type\": \"bridge\",\n \"bridge\": \"ospbr\",\n \"ipam\": {}\n}\n"
dns-resolver:
config:
search: []
server:
- 192.168.122.1
options:
- key: server
values:
- 192.168.122.1
external:
dnsDomain: external.example.com
mtu: 1500
prefix-length: 24
subnets:
- allocationRanges:
- end: 10.0.0.250
start: 10.0.0.100
cidr: 10.0.0.0/24
name: subnet1
vlan: 22
vlan: 22
internalapi:
base_iface: enp6s0
dnsDomain: internalapi.example.com
endpoint_annotations:
metallb.universe.tf/address-pool: internalapi
metallb.universe.tf/allow-shared-ip: internalapi
metallb.universe.tf/loadBalancerIPs: 172.17.0.80
iface: internalapi
lb_addresses:
- 172.17.0.80-172.17.0.90
mtu: 1496
net-attach-def: "{\n \"cniVersion\": \"0.3.1\",\n \"name\": \"internalapi\",\n
\ \"type\": \"macvlan\",\n \"master\": \"internalapi\",\n \"ipam\":
{\n \"type\": \"whereabouts\",\n \"range\": \"172.17.0.0/24\",\n
\ \"range_start\": \"172.17.0.30\",\n \"range_end\": \"172.17.0.70\"\n
\ }\n}\n"
prefix-length: 24
subnets:
- allocationRanges:
- end: 172.17.0.250
start: 172.17.0.100
cidr: 172.17.0.0/24
name: subnet1
vlan: 20
# nodes
node_0:
name: ostest-master-0
internalapi_ip: 172.17.0.5
tenant_ip: 172.19.0.5
ctlplane_ip: 192.168.122.10
storage_ip: 172.18.0.5
node_1:
name: ostest-master-1
internalapi_ip: 172.17.0.6
tenant_ip: 172.19.0.6
ctlplane_ip: 192.168.122.11
storage_ip: 172.18.0.6
node_2:
name: ostest-master-2
internalapi_ip: 172.17.0.7
tenant_ip: 172.19.0.7
ctlplane_ip: 192.168.122.12
storage_ip: 172.18.0.7

# networks
ctlplane:
dnsDomain: ctlplane.example.com
subnets:
- allocationRanges:
- end: 192.168.122.120
start: 192.168.122.100
- end: 192.168.122.200
start: 192.168.122.150
cidr: 192.168.122.0/24
gateway: 192.168.122.1
name: subnet1
prefix-length: 24
iface: enp6s0
mtu: 9000
lb_addresses:
- 192.168.122.80-192.168.122.90
endpoint_annotations:
metallb.universe.tf/address-pool: ctlplane
metallb.universe.tf/allow-shared-ip: ctlplane
metallb.universe.tf/loadBalancerIPs: 192.168.122.80
net-attach-def: |
{
"cniVersion": "0.3.1",
"name": "ctlplane",
"type": "macvlan",
"master": "ospbr",
"ipam": {
"type": "whereabouts",
"range": "192.168.122.0/24",
"range_start": "192.168.122.30",
"range_end": "192.168.122.70"
}
}
internalapi:
dnsDomain: internalapi.example.com
subnets:
- allocationRanges:
- end: 172.17.0.250
start: 172.17.0.100
cidr: 172.17.0.0/24
name: subnet1
vlan: 20
lbServiceType: LoadBalancer
node_0:
ctlplane_ip: 192.168.122.10
internalapi_ip: 172.17.0.10
name: master-0
storage_ip: 172.18.0.10
tenant_ip: 172.19.0.10
node_1:
ctlplane_ip: 192.168.122.11
internalapi_ip: 172.17.0.11
name: master-1
storage_ip: 172.18.0.11
tenant_ip: 172.19.0.11
node_2:
ctlplane_ip: 192.168.122.12
internalapi_ip: 172.17.0.12
name: master-2
storage_ip: 172.18.0.12
tenant_ip: 172.19.0.12
rabbitmq:
endpoint_annotations:
metallb.universe.tf/address-pool: internalapi
metallb.universe.tf/loadBalancerIPs: 172.17.0.85
rabbitmq-cell1:
endpoint_annotations:
metallb.universe.tf/address-pool: internalapi
metallb.universe.tf/loadBalancerIPs: 172.17.0.86
routes:
config:
- destination: 0.0.0.0/0
next-hop-address: 192.168.122.1
next-hop-interface: enp6s0
storage:
base_iface: enp6s0
dnsDomain: storage.example.com
endpoint_annotations:
metallb.universe.tf/address-pool: storage
metallb.universe.tf/allow-shared-ip: storage
metallb.universe.tf/loadBalancerIPs: 172.18.0.80
iface: storage
lb_addresses:
- 172.18.0.80-172.18.0.90
mtu: 1496
net-attach-def: "{\n \"cniVersion\": \"0.3.1\",\n \"name\": \"storage\",\n
\ \"type\": \"macvlan\",\n \"master\": \"storage\",\n \"ipam\": {\n
\ \"type\": \"whereabouts\",\n \"range\": \"172.18.0.0/24\",\n \"range_start\":
\"172.18.0.30\",\n \"range_end\": \"172.18.0.70\"\n }\n}\n"
prefix-length: 24
subnets:
- allocationRanges:
- end: 172.18.0.250
start: 172.18.0.100
cidr: 172.18.0.0/24
name: subnet1
vlan: 21
mtu: 1500
prefix-length: 24
iface: internalapi
vlan: 20
base_iface: enp6s0
lb_addresses:
- 172.17.0.80-172.17.0.90
endpoint_annotations:
metallb.universe.tf/address-pool: internalapi
metallb.universe.tf/allow-shared-ip: internalapi
metallb.universe.tf/loadBalancerIPs: 172.17.0.80
net-attach-def: |
{
"cniVersion": "0.3.1",
"name": "internalapi",
"type": "macvlan",
"master": "internalapi",
"ipam": {
"type": "whereabouts",
"range": "172.17.0.0/24",
"range_start": "172.17.0.30",
"range_end": "172.17.0.70"
}
}
storage:
dnsDomain: storage.example.com
subnets:
- allocationRanges:
- end: 172.18.0.250
start: 172.18.0.100
cidr: 172.18.0.0/24
name: subnet1
vlan: 21
storageClass: local-storage
storagemgmt:
base_iface: eth1
dnsDomain: storagemgmt.example.com
iface: storagemgmt
mtu: 1500
prefix-length: 24
subnets:
- allocationRanges:
- end: 172.20.0.250
start: 172.20.0.100
cidr: 172.20.0.0/24
name: subnet1
vlan: 23
mtu: 9000
prefix-length: 24
iface: storage
vlan: 21
base_iface: enp6s0
lb_addresses:
- 172.18.0.80-172.18.0.90
net-attach-def: |
{
"cniVersion": "0.3.1",
"name": "storage",
"type": "macvlan",
"master": "storage",
"ipam": {
"type": "whereabouts",
"range": "172.18.0.0/24",
"range_start": "172.18.0.30",
"range_end": "172.18.0.70"
}
}
storagemgmt: # used on RHEL, not used on OpenShift
dnsDomain: storagemgmt.example.com
subnets:
- allocationRanges:
- end: 172.20.0.250
start: 172.20.0.100
cidr: 172.20.0.0/24
name: subnet1
vlan: 23
tenant:
base_iface: enp6s0
dnsDomain: tenant.example.com
endpoint_annotations:
metallb.universe.tf/address-pool: tenant
metallb.universe.tf/allow-shared-ip: tenant
metallb.universe.tf/loadBalancerIPs: 172.19.0.80
iface: tenant
lb_addresses:
- 172.19.0.80-172.19.0.90
mtu: 1496
net-attach-def: "{\n \"cniVersion\": \"0.3.1\",\n \"name\": \"tenant\",\n
\ \"type\": \"macvlan\",\n \"master\": \"tenant\",\n \"ipam\": {\n \"type\":
\"whereabouts\",\n \"range\": \"172.19.0.0/24\",\n \"range_start\":
\"172.19.0.30\",\n \"range_end\": \"172.19.0.70\"\n }\n}\n"
prefix-length: 24
subnets:
- allocationRanges:
- end: 172.19.0.250
start: 172.19.0.100
cidr: 172.19.0.0/24
name: subnet1
vlan: 24
vlan: 24
kind: ConfigMap
metadata:
annotations:
config.kubernetes.io/local-config: 'true'
name: network-values
mtu: 9000
tenant:
dnsDomain: tenant.example.com
subnets:
- allocationRanges:
- end: 172.19.0.250
start: 172.19.0.100
cidr: 172.19.0.0/24
name: subnet1
vlan: 22
mtu: 1500
prefix-length: 24
iface: tenant
vlan: 22
base_iface: enp6s0
lb_addresses:
- 172.19.0.80-172.19.0.90
net-attach-def: |
{
"cniVersion": "0.3.1",
"name": "tenant",
"type": "macvlan",
"master": "tenant",
"ipam": {
"type": "whereabouts",
"range": "172.19.0.0/24",
"range_start": "172.19.0.30",
"range_end": "172.19.0.70"
}
}
external:
dnsDomain: external.example.com
subnets:
- allocationRanges:
- end: 10.0.0.250
start: 10.0.0.100
cidr: 10.0.0.0/24
gateway: 10.0.0.1
name: subnet1
mtu: 1500
datacentre:
net-attach-def: |
{
"cniVersion": "0.3.1",
"name": "datacentre",
"type": "bridge",
"bridge": "ospbr",
"ipam": {}
}
dns-resolver:
config:
server:
- 192.168.122.1
search: []
options:
- key: server
values:
- 192.168.122.1

routes:
config: []

rabbitmq:
endpoint_annotations:
metallb.universe.tf/address-pool: internalapi
metallb.universe.tf/loadBalancerIPs: 172.17.0.85
rabbitmq-cell1:
endpoint_annotations:
metallb.universe.tf/address-pool: internalapi
metallb.universe.tf/loadBalancerIPs: 172.17.0.86

lbServiceType: LoadBalancer
storageClass: local-storage
bridgeName: ospbr

0 comments on commit 9922724

Please sign in to comment.