Skip to content

superbrothers/kubectl-open-svc-plugin

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
cmd
 
 
pkg
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

kubectl open-svc SERVICE_NAME

This is a kubectl plugin that open the Kubernetes URL(s) for the specified service in your browser. Unlike the kubectl port-forward command, this plugin makes services accessible via their ClusterIP.

Screenshot

$ kubectl open-svc -h
Open the Kubernetes URL(s) for the specified service in your browser through a local proxy server.

Usage:
  kubectl open-svc SERVICE [--port=8001] [--address=127.0.0.1] [--keepalive=0] [flags]

Examples:
  # Open service/kubernetes-dashboard in namespace/kube-system
  kubectl open-svc kubernetes-dashboard -n kube-system
  
  # Use "https" scheme with --scheme option for connections between the apiserver
  # and service/rook-ceph-mgr-dashboard in namespace/rook-ceph
  kubectl open-svc rook-ceph-mgr-dashboard -n rook-ceph --scheme https

Install the plugin

  1. Install krew that is a plugin manager for kubectl

  2. Run:

     kubectl krew install open-svc
    
  3. Try it out

     kubectl open-svc -h
    

License

This software is released under the MIT License.

About

kubectl open-svc plugin makes services accessible via their ClusterIP from outside your cluster

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published