Git Product home page Git Product logo

kubectl-multinet's Introduction

kubectl-multinet

BuildTest

This is a kubectl plugin which outputs Pods' network-status of multi-net-spec.

Description

kubectl-multinet shows Pods' network-status annotation of multi-net-spec.

Usage

Show pod network status, in namespace 'default'

$ kubectl multinet
POD                 IF     ADDRESS          MAC
centos              eth0   [10.129.2.14]    
centos              net1   [10.129.3.200]   8a:c9:14:c2:36:33
nginx               eth0   [10.129.2.15]    
nginx               net1   [10.129.3.202]   46:fa:34:1e:cc:1e

Show pod network status, in namespace 'test1'

$ kubectl multinet -n test1
POD            IF     ADDRESS         MAC
test1-centos   eth0   [10.244.1.17]   02:47:1b:dd:9d:f4
test1-centos   net1   [20.1.1.101]    9e:4b:ed:a9:07:07

Show pod network status, wide format

$ kubectl multinet -o wide
NAMESPACE   POD                 NET                    IF     ADDRESS          MAC
default     centos                                     eth0   [10.129.2.14]    
default     centos              default/macvlan-net1   net1   [10.129.3.200]   8a:c9:14:c2:36:33
default     nginx                                      eth0   [10.129.2.15]    
default     nginx               default/macvlan-net1   net1   [10.129.3.202]   46:fa:34:1e:cc:1e

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

$ kubectl multinet -o json
[{"pod":"centos","net":"","interface":"eth0","address":["10.244.1.16"],"mac":"0a:f7:47:2c:a6:dd"},{"pod":"centos","net":"default/macvlan-net1","interface":"net1","address":["10.1.1.11"],"mac":"ae:e8:85:88:bb:d0"},{"pod":"nginx","net":"","interface":"eth0","address":["10.244.2.16"],"mac":"c2:d5:70:24:b8:68"},{"pod":"nginx","net":"default/macvlan-net1","interface":"net1","address":["10.1.1.13"],"mac":"fe:f2:5c:4a:ce:62"}]

Installation as kubectl plugin

Via krew

Installation via krew (https://github.com/kubernetes-sigs/krew)

kubectl krew install multinet

Manual Install

See Installing kubectl plugins.

License

This software is released under the Apache License 2.0.

kubectl-multinet's People

Contributors

dependabot[bot] avatar s1061123 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

kubectl-multinet's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.