Code Monkey home page Code Monkey logo

Comments (5)

mari6274 avatar mari6274 commented on July 23, 2024 1

You can use ssh tunneling as a workaround.

My example k8s environment is 3 nodes built with vagrant. I create ssh tunnel using command:

ssh -i ~/vagrant/k8s/.vagrant/machines/node1-master/virtualbox/private_key -L 127.0.0.1:3000:192.168.33.11:30002 [email protected]

Then spekt8 page can be accessed from local host with http://localhost:3000

from spekt8.

cvernooy23 avatar cvernooy23 commented on July 23, 2024 1

You can use ssh tunneling as a workaround.

My example k8s environment is 3 nodes built with vagrant. I create ssh tunnel using command:

ssh -i ~/vagrant/k8s/.vagrant/machines/node1-master/virtualbox/private_key -L 127.0.0.1:3000:192.168.33.11:30002 [email protected]

Then spekt8 page can be accessed from local host with http://localhost:3000

this worked for me but just shouldn't be necessary. Please allow remote access instead of hardcoding localhost:3000

from spekt8.

stefan2904 avatar stefan2904 commented on July 23, 2024

Yep, same problem for me.

localhost:3000 is hardcoded, for example in

const p1 = fetch('http://localhost:3000/pod');
const p2 = fetch('http://localhost:3000/service');
const p3 = fetch('http://localhost:3000/ingress');
const p4 = fetch('http://localhost:3000/daemonset')

and

fetch('http://localhost:3000')

and

fetch('http://localhost:3000/service')

from spekt8.

ptux avatar ptux commented on July 23, 2024

Same problem here.

from spekt8.

Mangosniper avatar Mangosniper commented on July 23, 2024

I have a really dirty workaround. I entered the container on the node running the pod with

sudo docker exec -it <PODID> bash

and then installed a text editor

apt-get update && apt-get install nano

then I edited the main.js file at /usr/src/app/dist and replaced all occurences of "localhost:3000" with the actual IP under which I made the webinterface accessiable

(FYI: kubectl port-forward --address 0.0.0.0 deployment/spekt8 3000:3000 if thats interesting for anyone. I could then just connect to <KUBERNETESMASTER_IP>:3000 on my workstation).

Then the webinterface worked on a reload. refresh button did not work, but I could reload again.

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.