Skip to content

Commit ca30768

Browse files
committed
Add bgp-l3-xl-adoption.yaml automation file
1 parent 03d848d commit ca30768

File tree

5 files changed

+408
-2
lines changed

5 files changed

+408
-2
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
bgp-l3-xl.yaml
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
---
2+
vas:
3+
bgp-l3-xl-adoption:
4+
stages:
5+
- pre_stage_run:
6+
- name: Apply taint on worker-9
7+
type: cr
8+
definition:
9+
spec:
10+
taints:
11+
- effect: NoSchedule
12+
key: testOperator
13+
value: 'true'
14+
- effect: NoExecute
15+
key: testOperator
16+
value: 'true'
17+
kind: Node
18+
resource_name: worker-9
19+
state: patched
20+
- name: Disable rp_filters on OCP nodes
21+
type: cr
22+
definition:
23+
spec:
24+
profile:
25+
- data: |
26+
[main]
27+
summary=Optimize systems running OpenShift (provider specific parent profile)
28+
include=-provider-${f:exec:cat:/var/lib/ocp-tuned/provider},openshift
29+
30+
[sysctl]
31+
net.ipv4.conf.enp7s0.rp_filter=0
32+
net.ipv4.conf.enp8s0.rp_filter=0
33+
name: openshift-no-reapply-sysctl
34+
recommend:
35+
- match:
36+
# applied to all nodes except worker-9, because worker-9 has no enp8s0
37+
- label: kubernetes.io/hostname
38+
value: worker-0
39+
- label: kubernetes.io/hostname
40+
value: worker-1
41+
- label: kubernetes.io/hostname
42+
value: worker-2
43+
- label: kubernetes.io/hostname
44+
value: worker-3
45+
- label: kubernetes.io/hostname
46+
value: worker-4
47+
- label: kubernetes.io/hostname
48+
value: worker-5
49+
- label: kubernetes.io/hostname
50+
value: worker-6
51+
- label: kubernetes.io/hostname
52+
value: worker-7
53+
- label: kubernetes.io/hostname
54+
value: worker-8
55+
- label: node-role.kubernetes.io/master
56+
operand:
57+
tunedConfig:
58+
reapply_sysctl: false
59+
priority: 15
60+
profile: openshift-no-reapply-sysctl
61+
api_version: tuned.openshift.io/v1
62+
kind: Tuned
63+
resource_name: openshift-no-reapply-sysctl
64+
namespace: openshift-cluster-node-tuning-operator
65+
state: present
66+
name: nncp-configuration
67+
path: examples/dt/bgp-l3-xl/control-plane/networking/nncp
68+
wait_conditions:
69+
- >-
70+
oc -n openstack wait nncp
71+
-l osp/nncm-config-type=standard
72+
--for jsonpath='{.status.conditions[0].reason}'=SuccessfullyConfigured
73+
--timeout=300s
74+
values:
75+
- name: network-values
76+
src_file: values.yaml
77+
build_output: nncp.yaml
78+
79+
- name: networking
80+
path: examples/dt/bgp-l3-xl/control-plane/networking
81+
wait_conditions:
82+
- >-
83+
oc -n metallb-system wait pod
84+
-l app=metallb -l component=speaker
85+
--for condition=Ready
86+
values:
87+
- name: network-values
88+
src_file: nncp/values.yaml
89+
build_output: networking.yaml

0 commit comments

Comments
 (0)