Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/superbrothers/kubectl-open-svc-plugin
kubectl open-svc plugin makes services accessible via their ClusterIP from outside your cluster
https://github.com/superbrothers/kubectl-open-svc-plugin
kubectl kubectl-plugins kubernetes
Last synced: 3 months ago
JSON representation
kubectl open-svc plugin makes services accessible via their ClusterIP from outside your cluster
- Host: GitHub
- URL: https://github.com/superbrothers/kubectl-open-svc-plugin
- Owner: superbrothers
- License: mit
- Created: 2018-05-22T09:27:20.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-04-21T09:16:06.000Z (9 months ago)
- Last Synced: 2024-10-15T13:59:11.614Z (3 months ago)
- Topics: kubectl, kubectl-plugins, kubernetes
- Language: Go
- Homepage:
- Size: 6.85 MB
- Stars: 120
- Watchers: 3
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-kubectl-plugins - kubectl-open-svc-plugin - svc plugin makes services accessible via their ClusterIP from outside your cluster | Uncategorized | (kubectl Plugins / Installing plugins via awesome-kubectl-plugins)
README
# 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](./screenshots/kubectl-open-svc-plugin.gif)
```
$ 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# Open port "http-monitoring" of service/istiod in namespace/istio-system
kubectl open-svc istiod -n istio-system --svc-port http-monitoring# Open port 15014 of service/istiod in namespace/istio-system
kubectl open-svc istiod -n istio-system --svc-port 15014# 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](https://github.com/GoogleContainerTools/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.