kubectl-services

module
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 29, 2020 License: Apache-2.0

README

kubectl services

A kubectl plugin to explore ingresses and services and their associated backends.

Quick Start

# Install plugin
$ make bin && sudo cp bin/kubectl-services /usr/local/bin/

# Get help
$ kubectl services --help

# Show ingresses and servies in `myapp` namespace
$ kubectl services -n demo
Ingress demo.router (*/apache)
 Service demo.apache-service (3000)
 . Pod demo.apache-deployment-6f6846564b-dqp5c (172.18.0.6:80)
 . Pod demo.apache-deployment-6f6846564b-qqmth (172.18.0.8:80)

Ingress demo.router (*/nginx)
 Service demo.nginx-service (8080)
 . Pod demo.nginx-deployment-b486cddf6-x2wz4 (172.18.0.9:80)
    Container nginx 
 x Pod demo.nginx-not-ready-deployment-55999bd676-b4mhk 

Service demo.lb-service (6060)
. Pod demo.nginx-deployment-b486cddf6-x2wz4 (172.18.0.9:80)
   Container nginx 
x Pod demo.nginx-not-ready-deployment-55999bd676-b4mhk 

Service demo.nodeport-service (3030)
. Pod demo.apache-deployment-6f6846564b-dqp5c (172.18.0.6:80)
. Pod demo.apache-deployment-6f6846564b-qqmth (172.18.0.8:80)

Notes

  • Only services of type NodePort and LoadBalancer are displayed.

  • When a Pod contains several containers and the containers declare their ports (with ports.containerPort), the name of the concerned container is displayed.

Directories

Path Synopsis
cmd
plugin command
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL