Coder Social home page Coder Social logo

Comments (2)

MaRaSu avatar MaRaSu commented on June 20, 2024 3

Writing Helm chart & yaml to deploy openstreetmap-tile-server is relatively straightforward once you get your head around kubernetes basic concepts. It's a bit steeper hill to climb than trying to just convert Docker compose files, however not sure how much success you will have in debugging any kubernetes issues if you do not spend time mastering the basics.

Where the difficulty was in deploying tile server was in how kubernetes (storage) volumes handling differs from Docker. Forked this repo and added couple of tweaks to Dockerfile + run.sh to handle those.

from openstreetmap-tile-server.

ihadeed avatar ihadeed commented on June 20, 2024
  • create a VolumeClaim to hold the map data
  • run a Deployment with that VolumeClaim mounted, let this Deployment handle the data import
  • run another Deployment with a modified Dockerfile that wraps this one. It should wait until the first Deployment has ran and exited, before running the server.. just need to make sure they're in the same namespace
  • you can then create a cronjob to update your data, or just enable auto updates via the environment variable

If this image lets you serve & import data at the same time, then you don't need that wrapper with the wait functionality, you can deploy everything at once. Just need to set restart: never on the import Pod.

from openstreetmap-tile-server.

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.