Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ryotarai/kube-daemonset-proxy
HTTP proxy to Pods under Daemonset
https://github.com/ryotarai/kube-daemonset-proxy
Last synced: 9 days ago
JSON representation
HTTP proxy to Pods under Daemonset
- Host: GitHub
- URL: https://github.com/ryotarai/kube-daemonset-proxy
- Owner: ryotarai
- Created: 2019-04-07T06:55:31.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-04-07T13:56:01.000Z (over 5 years ago)
- Last Synced: 2024-11-07T17:05:12.549Z (about 2 months ago)
- Language: JavaScript
- Size: 1.53 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# kube-daemonset-proxy
[![Docker Repository on Quay](https://quay.io/repository/ryotarai/kube-daemonset-proxy/status "Docker Repository on Quay")](https://quay.io/repository/ryotarai/kube-daemonset-proxy)
HTTP reverse proxy to Daemonset Pods
![](https://github.com/ryotarai/kube-daemonset-proxy/raw/master/doc/images/index-page.png)
## Endpoints
- `/` shows an index page as above. It includes links to Pods in each nodes.
- `/n/:nodename/...` proxies requests to a Pod in `nodename`.## Example
This example deploys kube-daemonset-proxy and Netdata on Kind cluster.
```
$ kind create cluster --config example/kind/cluster.yaml --name kube-daemonset-proxy
$ export KUBECONFIG="$(kind get kubeconfig-path --name kube-daemonset-proxy)"
$ docker build . -t kube-daemonset-proxy && kind load docker-image kube-daemonset-proxy --name kube-daemonset-proxy
$ kubectl apply -f example/manifests -R
$ kubectl port-forward -n kube-daemonset-proxy service/kube-daemonset-proxy :80
Forwarding from 127.0.0.1:xxxxx -> 8080
```Then, visit `http://127.0.0.1:xxxxx` in a browser.