Skip to content

Commit

Permalink
BGP controlplane L3 separation
Browse files Browse the repository at this point in the history
  • Loading branch information
eduolivares committed Feb 6, 2025
1 parent 8813a40 commit ea7f312
Show file tree
Hide file tree
Showing 20 changed files with 1,414 additions and 453 deletions.
100 changes: 91 additions & 9 deletions automation/vars/bgp_dt01.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,47 @@ vas:
kind: Node
resource_name: worker-3
state: patched
- name: Disable rp_filters on OCP nodes
type: cr
definition:
spec:
profile:
- data: |
[main]
summary=Optimize systems running OpenShift (provider specific parent profile)
include=-provider-${f:exec:cat:/var/lib/ocp-tuned/provider},openshift
[sysctl]
net.ipv4.conf.enp8s0.rp_filter=0
net.ipv4.conf.enp9s0.rp_filter=0
name: openshift-no-reapply-sysctl
recommend:
- match:
# applied to all nodes except worker-3, because worker-3 has no enp9s0
- label: kubernetes.io/hostname
value: worker-0
- label: kubernetes.io/hostname
value: worker-1
- label: kubernetes.io/hostname
value: worker-2
- label: node-role.kubernetes.io/master
operand:
tunedConfig:
reapply_sysctl: false
priority: 15
profile: openshift-no-reapply-sysctl
api_version: tuned.openshift.io/v1
kind: Tuned
resource_name: openshift-no-reapply-sysctl
namespace: openshift-cluster-node-tuning-operator
state: present
path: examples/dt/bgp/bgp_dt01/control-plane/nncp
wait_conditions:
- >-
oc -n openstack wait nncp
-l osp/nncm-config-type=standard
--for jsonpath='{.status.conditions[0].reason}'=SuccessfullyConfigured
--timeout=60s
--timeout=300s
values:
- name: network-values
src_file: values.yaml
Expand All @@ -43,29 +77,77 @@ vas:
src_file: service-values.yaml
build_output: control-plane.yaml

- path: examples/dt/bgp/bgp_dt01/edpm/networkers
- path: examples/dt/bgp/bgp_dt01/edpm/computes/r0
wait_conditions:
- >-
oc -n openstack wait openstackdataplanenodeset
r0-compute-nodes
--for condition=SetupReady
--timeout=600s
values:
- name: edpm-r0-compute-nodeset-values
src_file: values.yaml
build_output: edpm-r0-compute-nodeset.yaml

- path: examples/dt/bgp/bgp_dt01/edpm/computes/r1
wait_conditions:
- >-
oc -n openstack wait openstackdataplanenodeset
r1-compute-nodes
--for condition=SetupReady
--timeout=600s
values:
- name: edpm-r1-compute-nodeset-values
src_file: values.yaml
build_output: edpm-r1-compute-nodeset.yaml

- path: examples/dt/bgp/bgp_dt01/edpm/computes/r2
wait_conditions:
- >-
oc -n openstack wait openstackdataplanenodeset
r2-compute-nodes
--for condition=SetupReady
--timeout=600s
values:
- name: edpm-r2-compute-nodeset-values
src_file: values.yaml
build_output: edpm-r2-compute-nodeset.yaml

- path: examples/dt/bgp/bgp_dt01/edpm/networkers/r0
wait_conditions:
- >-
oc -n openstack wait openstackdataplanenodeset
r0-networker-nodes
--for condition=SetupReady
--timeout=600s
values:
- name: edpm-r0-networker-nodeset-values
src_file: values.yaml
build_output: edpm-r0-networker-nodeset.yaml

- path: examples/dt/bgp/bgp_dt01/edpm/networkers/r1
wait_conditions:
- >-
oc -n openstack wait openstackdataplanenodeset
networker-nodes
r1-networker-nodes
--for condition=SetupReady
--timeout=600s
values:
- name: edpm-networker-nodeset-values
- name: edpm-r1-networker-nodeset-values
src_file: values.yaml
build_output: edpm-networker-nodeset.yaml
build_output: edpm-r1-networker-nodeset.yaml

- path: examples/dt/bgp/bgp_dt01/edpm/computes
- path: examples/dt/bgp/bgp_dt01/edpm/networkers/r2
wait_conditions:
- >-
oc -n openstack wait openstackdataplanenodeset
compute-nodes
r2-networker-nodes
--for condition=SetupReady
--timeout=600s
values:
- name: edpm-compute-nodeset-values
- name: edpm-r2-networker-nodeset-values
src_file: values.yaml
build_output: edpm-compute-nodeset.yaml
build_output: edpm-r2-networker-nodeset.yaml

- path: examples/dt/bgp/bgp_dt01/edpm/deployment
wait_conditions:
Expand Down
Loading

0 comments on commit ea7f312

Please sign in to comment.