Giter VIP home page Giter VIP logo

Comments (4)

josegonzalez avatar josegonzalez commented on June 13, 2024

The k3s scheduler requires a registry, full stop. K3s uses containers, which doesn't have access to your local docker images, so attempting to deploy without a configured registry will fail.

from dokku.

pierredup avatar pierredup commented on June 13, 2024

Thanks for clarifying @josegonzalez

I was able to get it to work by setting the following options:

docker login ....
dokku registry:set --global server $server
dokku registry:set --global image-repo-template "$namespace/{{ .AppName }}"
dokku registry:set --global push-on-release true

This wasn't clear in the docs and took some time to figure out all the steps to get it working.
I'll see if I can maybe create a PR to update the k3s docs with this information in the following weeks.

Edit: I actually just found this tutorial: https://dokku.com/tutorials/other/deploying-to-k3s/. Might just add a link to this tutorial from the docs page

from dokku.

pierredup avatar pierredup commented on June 13, 2024

Also on a separate note, is there a way to link external services when using k3s? Like MySQL or Postgres?
Currently mysql:create creates a container on the local docker instance, which the k3s pod then don't have access to. Is there an alternative way to use the k3s scheduler when creating services through plugins?

from dokku.

josegonzalez avatar josegonzalez commented on June 13, 2024

The scheduler plugins do not start services on k3s, and I don't have any current plans to enable that sort of functionality (as you can imagine, things get much more complicated when making something highly available).

I recommend looking at the official helm charts/operators for the datastores you're looking at. Bitnami also has some decent helm charts that might be useful to look into.

from dokku.

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.