-
Notifications
You must be signed in to change notification settings - Fork 2
/
srl-k8s-lab.clab.yml
99 lines (91 loc) · 2.55 KB
/
srl-k8s-lab.clab.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
name: srlk8s
prefix: ""
topology:
kinds:
srl:
image: ghcr.io/nokia/srlinux:23.7.1
type: ixrd2l
linux:
image: ghcr.io/hellt/network-multitool
nodes:
### fabric ###
leaf1:
kind: srl
startup-config: configs/leaf1.conf
leaf2:
kind: srl
startup-config: configs/leaf2.conf
leaf3:
kind: srl
startup-config: configs/leaf3.conf
leaf4:
kind: srl
startup-config: configs/leaf4.conf
spine1:
kind: srl
type: ixrd3l
startup-config: configs/spine1.conf
spine2:
kind: srl
type: ixrd3l
startup-config: configs/spine2.conf
### minikube cluster ###
cluster1:
kind: ext-container
exec:
- ip address add 192.168.1.11/24 dev eth1
- ip route add 192.168.0.0/16 via 192.168.1.1
cluster1-m02:
kind: ext-container
exec:
- ip address add 192.168.1.12/24 dev eth1
- ip route add 192.168.0.0/16 via 192.168.1.1
cluster1-m03:
kind: ext-container
exec:
- ip address add 192.168.1.13/24 dev eth1
- ip route add 192.168.0.0/16 via 192.168.1.1
#### clients ###
client1:
kind: linux
binds:
- configs/client-config.sh:/client-config.sh
exec:
- bash /client-config.sh 192.168.2.11
client2:
kind: linux
binds:
- configs/client-config.sh:/client-config.sh
exec:
- bash /client-config.sh 192.168.2.12
client3:
kind: linux
binds:
- configs/client-config.sh:/client-config.sh
exec:
- bash /client-config.sh 192.168.2.13
client4:
kind: linux
binds:
- configs/client-config.sh:/client-config.sh
exec:
- bash /client-config.sh 192.168.2.14
links:
### #### fabric ### ####
- endpoints: ["spine1:e1-1", "leaf1:e1-49"]
- endpoints: ["spine1:e1-2", "leaf2:e1-49"]
- endpoints: ["spine1:e1-3", "leaf3:e1-49"]
- endpoints: ["spine1:e1-4", "leaf4:e1-49"]
- endpoints: ["spine2:e1-1", "leaf1:e1-50"]
- endpoints: ["spine2:e1-2", "leaf2:e1-50"]
- endpoints: ["spine2:e1-3", "leaf3:e1-50"]
- endpoints: ["spine2:e1-4", "leaf4:e1-50"]
#### minikube ####
- endpoints: ["leaf1:e1-1", "cluster1:eth1"]
- endpoints: ["leaf2:e1-1", "cluster1-m02:eth1"]
- endpoints: ["leaf3:e1-1", "cluster1-m03:eth1"]
#### clients ####
- endpoints: ["client1:eth1", "leaf1:e1-2"]
- endpoints: ["client2:eth1", "leaf2:e1-2"]
- endpoints: ["client3:eth1", "leaf3:e1-2"]
- endpoints: ["client4:eth1", "leaf4:e1-2"]