Coder Social home page Coder Social logo

How to run in production? about micro HOT 6 OPEN

pavel-d avatar pavel-d commented on June 25, 2024
How to run in production?

from micro.

Comments (6)

felixd avatar felixd commented on June 25, 2024 5

@asim, @pavel-d made really good question. As a person who did not use micro before on production it's really hard to make it stratight to point. I am still strugling how to run it on production server correctly.

from micro.

asim avatar asim commented on June 25, 2024

There's currently no good deployment doc for kubernetes. There used to be a helm chart but it was deprecated. We have an image that will run on k8s and use it for M3O.com but no guides at this point. You can find the pulumi code in github.com/M3O/M3O. There an image in cmd/micro-platform in this repo.

from micro.

pavel-d avatar pavel-d commented on June 25, 2024

Thanks for the quick reply. Is there any guidance how to deploy it on prod without k8s then? I'm trying to do something simple:

  • Create service foo and bar
  • Scale service foo to X instances, service bar to Y instances
  • Make sure that services are started after server reboots

It's not clear how to do that via micro server. I've also tried to compile service as a separate binary, but it's not clear how to run it (it just returns Internal Server Error on start)

from micro.

asim avatar asim commented on June 25, 2024

You can deploy it on digitalocean using this 1-click deployment here. Services should be started back up after micro starts again. There's no instance scaling unless you're running on k8s.

from micro.

incognito-bob avatar incognito-bob commented on June 25, 2024

So you are saying that if I start a kubernetes job with an image pulled from dockerhub (micro/micro) there might be some issues while deploying?

I have successfully deployed the microservices but am unable to login to the micro server.
I get "Invalid token provided", could it be the wrong image?

from micro.

asim avatar asim commented on June 25, 2024

The docker image on dockerhub is no longer updated. See the readme for GitHub for where the image is now. In all honesty I stopped trying to deploy micro to kubernetes long ago. We'd need new instructions to deploy the platform image which depends on etcd, redis, postgres and other things. The only way we'd get on kubernetes again otherwise is by some simpler version of Micro.

from micro.

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.