Code Monkey home page Code Monkey logo

Comments (8)

ipfaffy avatar ipfaffy commented on June 24, 2024

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.

elliotxkim avatar elliotxkim commented on June 24, 2024

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.

ipfaffy avatar ipfaffy commented on June 24, 2024

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.

ipfaffy avatar ipfaffy commented on June 24, 2024

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.

bpatton00 avatar bpatton00 commented on June 24, 2024

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.

grzesuav avatar grzesuav commented on June 24, 2024

@bpatton00 so what is the resolution ?

from spekt8.

bpatton00 avatar bpatton00 commented on June 24, 2024

@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.

ITBeyder avatar ITBeyder commented on June 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.