https://github.com/stephenlacy/kuberhaus
Kubernetes resource dashboard with node/pod layout and resource requests
https://github.com/stephenlacy/kuberhaus
dashboard devops kubernetes resource resource-dashboard
Last synced: about 1 month ago
JSON representation
Kubernetes resource dashboard with node/pod layout and resource requests
- Host: GitHub
- URL: https://github.com/stephenlacy/kuberhaus
- Owner: stephenlacy
- License: mit
- Created: 2019-10-14T18:47:51.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-03-16T22:55:53.000Z (almost 2 years ago)
- Last Synced: 2025-04-03T21:23:45.560Z (11 months ago)
- Topics: dashboard, devops, kubernetes, resource, resource-dashboard
- Language: TypeScript
- Homepage:
- Size: 1.62 MB
- Stars: 58
- Watchers: 2
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# kuberhaus
> Resource dashboard for kubernetes
### Setup
Connect to your desired kubernetes cluster:
```
kubectl config use-context
```
```
go run main.go
```
Now start the dashboard:
```
cd dashboard
yarn
yarn start
```
# Using Docker
Use existing image `stevelacy/kuberhaus`
`docker run -v ~/.kube/:/root/.kube -p 8282:8282 --name stevelacy/kuberhaus:latest`
Open `http://localhost:8282`
Build image
```sh
docker build -t kuberhaus:latest .
```
Run container and mount config to container
```sh
docker run -v ~/.kube/:/root/.kube -p 8282:8282 --name kuberhaus
```
# Running on kubernetes
Kuberhaus will automatically retrieve the `KUBERNETES_SERVICE_HOST` variable and connect to the parent cluster
`deployment.yaml`
```yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: kuberhaus-deployment
namespace: kube-system
labels:
app: kuberhaus
spec:
replicas: 1
selector:
matchLabels:
app: kuberhaus
template:
metadata:
labels:
app: kuberhaus
spec:
serviceAccountName: cluster-admin
containers:
- name: kuberhaus
image: stevelacy/kuberhaus:latest
imagePullPolicy: Always
ports:
- containerPort: 8282
---
```
`kubectl apply -f deployment.yaml`
Access it with `kubectl port-forward`
`kubectl port-forward -n kube-system kuberhaus-deployment- 8282:8282`
MIT