Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy application to kubernetes #56

Closed
Pflegusch opened this issue Sep 4, 2019 · 2 comments
Closed

Deploy application to kubernetes #56

Pflegusch opened this issue Sep 4, 2019 · 2 comments

Comments

@Pflegusch
Copy link

Is there an easy and straightforward way to deploy the application to kubernetes? I've been playing around with kompose and kompose convert but dont have any success. Can anyone help or has tips?
Would be nice to have a helm chart in the future to make deploying as easy as possible and I would like to help with that, I'm still relatively new to Kubernetes/Docker and still learning a lot but would like to contribute.

Any help is appreciated :)

@ihadeed
Copy link

ihadeed commented Sep 10, 2019

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

@MaRaSu
Copy link

MaRaSu commented Sep 14, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants