Code Monkey home page Code Monkey logo

Comments (4)

vasu-dasari avatar vasu-dasari commented on May 17, 2024

In your config/prod.exs, can you try changing:
kubernetes_selector: "tier=phishx-tier"
to
kubernetes_selector: "app=phishx-app"

Also what does the output of this command show?
kubectl get endpoints

from libcluster.

pedromvieira avatar pedromvieira commented on May 17, 2024

I think it worked, but I'm not sure.
How to start a pod with "console" as argument? If I try to change from "foreground" it crash.
I'm using "kubectl attach $POD" to see output. Is there any other command to gain access to IEX? (To test node connectivity, etc.)

NAME      ENDPOINTS                                         AGE
phishx    172.17.0.4:4000,172.17.0.5:4000,172.17.0.6:4000   4m

from libcluster.

vasu-dasari avatar vasu-dasari commented on May 17, 2024

I haven’t explored kubectl attach”. Generally during my development process I have Docker images built such a way that,containers do sleep to infinity. And then I start app in Kubernetes and then I go into containers via bash and launch application manually and see if it works as expected. Once that process is working I create Docker images to use either console or foreground options to start containers.

from libcluster.

bitwalker avatar bitwalker commented on May 17, 2024

You should start via foreground, and then use kubectl exec -it some-pod -- /bin/bash to connect to the pod and run bash. From there you can use bin/myapp remote_console to pop open IEx and interact with the running node. You can also use Erlang's ssh module to support ssh clients which connect directly to the Erlang shell, but personally I would use the first of my suggestions.

from libcluster.

Related Issues (20)

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.