-
Notifications
You must be signed in to change notification settings - Fork 27
/
2node-sts.yml
67 lines (66 loc) · 1.07 KB
/
2node-sts.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
---
apiVersion: networkop.co.uk/v1beta1
kind: Topology
metadata:
name: r1-0
spec:
links:
- uid: 1
peer_pod: r2-0
local_intf: eth1
local_ip: 12.12.12.1/24
peer_intf: eth1
peer_ip: 12.12.12.2/24
---
apiVersion: networkop.co.uk/v1beta1
kind: Topology
metadata:
name: r2-0
spec:
links:
- uid: 1
peer_pod: r1-0
local_intf: eth1
local_ip: 12.12.12.2/24
peer_intf: eth1
peer_ip: 12.12.12.1/24
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: r1
spec:
selector:
matchLabels:
topo: r1
replicas: 1
serviceName: r2
template:
metadata:
labels:
topo: r1
spec:
containers:
- image: alpine
name: pod
command: ["/bin/sh", "-c", "sleep 2000000000000"]
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: r2
spec:
selector:
matchLabels:
topo: r2
replicas: 1
serviceName: r2
template:
metadata:
labels:
topo: r2
spec:
containers:
- image: alpine
name: pod
command: ["/bin/sh", "-c", "sleep 2000000000000"]