Skip to content

Commit 80b5add

Browse files
committed
Change README to reflect latest change
1 parent 7553509 commit 80b5add

File tree

1 file changed

+19
-8
lines changed

1 file changed

+19
-8
lines changed

README.md

+19-8
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,31 @@ Show pod network status, in namespace 'default'
1313

1414
```
1515
$ kubectl multinet
16-
POD NET IF ADDRESS MAC
17-
centos eth0 [10.244.1.16] 0a:f7:47:2c:a6:dd
18-
centos default/macvlan-net1 net1 [10.1.1.11] ae:e8:85:88:bb:d0
19-
nginx eth0 [10.244.2.16] c2:d5:70:24:b8:68
20-
nginx default/macvlan-net1 net1 [10.1.1.13] fe:f2:5c:4a:ce:62
16+
POD IF ADDRESS MAC
17+
centos eth0 [10.129.2.14]
18+
centos net1 [10.129.3.200] 8a:c9:14:c2:36:33
19+
nginx eth0 [10.129.2.15]
20+
nginx net1 [10.129.3.202] 46:fa:34:1e:cc:1e
2121
```
2222

2323
Show pod network status, in namespace 'test1'
2424

2525
```
2626
$ kubectl multinet -n test1
27-
POD NET IF ADDRESS MAC
28-
test1-centos eth0 [10.244.1.17] 02:47:1b:dd:9d:f4
29-
test1-centos test1/test1-macvlan-conf-1 net1 [20.1.1.101] 9e:4b:ed:a9:07:07
27+
POD IF ADDRESS MAC
28+
test1-centos eth0 [10.244.1.17] 02:47:1b:dd:9d:f4
29+
test1-centos net1 [20.1.1.101] 9e:4b:ed:a9:07:07
30+
```
31+
32+
Show pod network status, wide format
33+
34+
```
35+
$ kubectl multinet -o wide
36+
NAMESPACE POD NET IF ADDRESS MAC
37+
default centos eth0 [10.129.2.14]
38+
default centos default/macvlan-net1 net1 [10.129.3.200] 8a:c9:14:c2:36:33
39+
default nginx eth0 [10.129.2.15]
40+
default nginx default/macvlan-net1 net1 [10.129.3.202] 46:fa:34:1e:cc:1e
3041
```
3142

3243
Show pod network status, in namespace 'default', JSON format (note: JSON format is experimental, so format might be changed)

0 commit comments

Comments
 (0)