Comments (8)
To install I literally copy/pasted the spekt8-deployment.yaml
and fabric8-rbac.yaml
from the docs and then apply with kubectl create -f $file
.
from spekt8.
Hi, do you mind providing me with a little bit more information? Are you just saving the yaml files to your own code base and then applying it to your own cluster? Or are you using our code base? It looks like some promises are not being caught. If the UI is being served but has no pods/ingresses/services, it means it's not fetching from the Kubernetes api server properly and that could be because of various reasons.
from spekt8.
Ran these commands with an activated kubeconfig.
git clone https://github.com/spekt8/spekt8.git
cd spekt8
kubectl apply -f fabric8-rbac.yaml
kubectl apply -f spekt8-deployment.yaml
kubectl port-forward deployment/spekt8 3000:3000
kubectl port-forward deployment/spekt8 3000:3000
This started the service, but only brought up a white screen.
from spekt8.
Also after running kubectl logs -f $pod_id
I got:
> [email protected] server /usr/src/app
> nodemon src/server/server.js
[nodemon] 1.18.7
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: *.*
[nodemon] starting `node src/server/server.js`
Listening on port 3000....
(node:39) UnhandledPromiseRejectionWarning: #<Object>
(node:39) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:39) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
from spekt8.
update, for anyone that runs into this. As expected it's a permissions error that can be seen if you go directly to localhost:3000/pods and view the json object
"response":{"statusCode":403,"body":{"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"pods is forbidden: User "system:serviceaccount:default:default" cannot list resource "pods" in API group "" in the namespace "default"","reason":"Forbidden","details":{"kind":"pods"},"code":403}
My issue was related to the fact that I was trying to use something other than default:default and fabric8 didn't seem to get that information.
from spekt8.
@bpatton00 so what is the resolution ?
from spekt8.
@bpatton00 so what is the resolution ?
I ended up reverting to default:default for the user.
I also modified the source code to meet our needs. Changed hard coded localhost:3000 to pickup window.location.href so I could serve it from a dns to our team. See my fork for the code
I also have on the roadmap to convert the k8sApi.listNamespacedService('default') value to a parameter that can be set and leveraged based on where it currently is deployed. Ideally I'd like to see spekt8 have a selectable namespace option with a dynamically populated list.
from spekt8.
is the issue resolved for you ? im getting those erros from the pod log
Listening on port 3000....
(node:39) UnhandledPromiseRejectionWarning: #<Object>
(node:39) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:39) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
(node:39) UnhandledPromiseRejectionWarning: #<Object>
(node:39) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:39) UnhandledPromiseRejectionWarning: #<Object>
(node:39) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 3)
(node:39) UnhandledPromiseRejectionWarning: #<Object>
(node:39) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 4)
(node:39) UnhandledPromiseRejectionWarning: #<Object>
(node:39) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 5)
(node:39) UnhandledPromiseRejectionWarning: #<Object>
(node:39) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 6)
from spekt8.
Related Issues (19)
- It does not work with NodePort configuration (localhost:3000 is hardcoded) HOT 5
- namespace hardcoded to default HOT 20
- No acces to Kubernetes cluster depite of rbac authorization HOT 13
- any way to see pod names instead of "Pods" ?
- Ingress-rules not displayed (just the default host)
- Refresh continues to append to list of components in table view
- fabric8-rbac rolebinding is over-permissive HOT 3
- pod, service etc. JSON responses seem correct, yet nothing is visualised in the UI HOT 8
- Can't rebuild the project HOT 1
- Image only built for AMD64 ?
- Service/Pod connection broken when selector contain multiple labels
- hardcoded localhost:3000
- it supports network graph between pods ?
- Spekt8 doesn't show my pods, services and ingress HOT 1
- UnhandledPromiseRejectionWarning / daemonset REST Endpoint Failure HOT 1
- Local installation using Docker
- Dockerhub image is not up to date HOT 1
- Support for Mac M1 (arm64)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spekt8.