File tree 3 files changed +49
-3
lines changed
3 files changed +49
-3
lines changed Original file line number Diff line number Diff line change
1
+ FROM zlim/bcc
2
+
3
+ ADD ./udplb /usr/bin/udplb
4
+
5
+ ENTRYPOINT [ "/usr/bin/udplb" ]
Original file line number Diff line number Diff line change 1
1
- key :
2
- address : 127.0 .0.1
2
+ address : 10.123 .0.10
3
3
port : 8125
4
4
upstream :
5
- - address : 172.17.0.2
5
+ - address : target_one
6
6
port : 8125
7
7
tc_action : pass
8
- - address : 172.17.0.3
8
+ - address : target_two
9
9
port : 8125
10
10
tc_action : pass
Original file line number Diff line number Diff line change
1
+ version : " 2"
2
+
3
+ services :
4
+ udplb :
5
+ build : .
6
+ cap_add :
7
+ - NET_ADMIN
8
+ - SYS_ADMIN
9
+ privileged : true
10
+ volumes :
11
+ - " /lib/modules:/lib/modules:ro"
12
+ - " /usr/src:/usr/src:ro"
13
+ - " /etc/localtime:/etc/localtime:ro"
14
+ - " ./config.yaml:/config.yaml"
15
+ restart : always
16
+ command : " -d -c /config.yaml -i eth0"
17
+ networks :
18
+ vpcbr :
19
+ ipv4_address : 10.123.0.10
20
+
21
+ target_one :
22
+ image : corfr/tcpdump
23
+ command : -XX -eni eth0 udp port 8125
24
+ networks :
25
+ vpcbr :
26
+ ipv4_address : 10.123.0.20
27
+
28
+ target_two :
29
+ image : corfr/tcpdump
30
+ command : -XX -eni eth0 udp port 8125
31
+ networks :
32
+ vpcbr :
33
+ ipv4_address : 10.123.0.30
34
+
35
+ networks :
36
+ vpcbr :
37
+ driver : bridge
38
+ ipam :
39
+ config :
40
+ - subnet : 10.123.0.0/24
41
+ gateway : 10.123.0.1
You can’t perform that action at this time.
0 commit comments