Replies: 2 comments 4 replies
-
Hey @igbanam thanks for giving Kuby a try! Sorry to hear it didn't work for you - I'm happy to do what I can to get you sorted :) Let me respond to each of your questions in turn:
Right, Kuby does this for you via the
I'm not sure what you mean. You should be able to install Docker Desktop by downloading it from the Docker website and running the usual Mac install process.
By default, Docker will build images for the CPU architecture it's run on. Since hosting companies commonly provide x86 hardware, Kuby will print an error message if you try to build images for ARM processors. To build x86 images instead, pass the To more directly answer your question: you probably want to build x86-compatible images.
Based on the details you posted in #110, this is likely a Nokogiri/bundler issue. I don't think there's much Kuby can do to help. Have you considered filing an issue in the nokogiri repo? Interestingly, it looks like the maintainers have been providing precompiled arm64-darwin versions of the gem since v1.11.0 (here's the most recent version), so it should Just Work. Are you using the latest versions of rubygems (
If you want Kuby to manage your database for you, then yes, you need CockroachDB. I tried to support Postgres and MySQL but it turned out to be a nightmare. A lot of developers choose to use their hosting provider and whatever managed database products they offer. For example, DigitalOcean can give you a fully managed Postgres instance they will provision and upgrade for you. If you'd rather go that route, you can tell Kuby to stop managing your database: Kuby.define('my-app') do
environment(:production) do
kubernetes do
plugin :rails_app do
manage_database false
end
end
end
end |
Beta Was this translation helpful? Give feedback.
-
I really appreciate you taking the time to log these issues, as they will likely help others and because it's great to see the details of issues people run into as they onboard. This is the first time I've heard the term "friction log," what a great concept 😄
Ah ok I get what you mean now. I think you'll want to check out Kind, which is a tool for standing up ephemeral Kubernetes clusters within Docker Desktop (and other container runtimes). Here are the Kuby docs for getting things up-and-running.
As long as the images have been pushed to a Docker registry, and that registry can be accessed over the public internet, your DigitalOcean (or Kind) cluster should be able to pull them down and run them. Given the screenshot you posted of the
You'll want the IP of the ingress object the controller created for your app. The various hosting providers generally respond to the creation of ingress objects by starting up whatever their version of a load balancer is (DigitalOcean calls them "load balancers," but Linode calls them "node balancers," etc). To make a request to your app, you'll need the IP of that load balancer. You can find it by consulting your platform's web UI or by running the following Kuby command: bundle exec kuby -e production kubectl -N -- get ingresses The response should include an entry for the ingress that was created for your app, along with the address and hosts configured for that ingress. Once you have the IP, you'll need to either add an entry in your /etc/hosts file or make a request with curl -H "Host: goalkeeper.com.ng" https://<ip here>:443 Once DNS is properly configured, you should be able to make a request directly to goalkeeper.com.ng without any special headers or /etc/host entries.
No. All you need to do is add an "A" record as it appears you've done in the screenshot. Note that it may take some time for DNS to propagate and for LetsEncrypt to issue your TLS certificate (assuming Of course, if you registered your domain with DigitalOcean, or your domain's nameserver records point to DigitalOcean, then yes, you'll need to use DigitalOcean to configure the domain's DNS records. But otherwise no. Actually come to think of it, I don't think DigitalOcean is a registrar?
The cert manager pods run in a separate bundle exec kuby -e production kubectl -- -n cert-manager get pods
👍 |
Beta Was this translation helpful? Give feedback.
-
Hello team!
I like the idea of Kuby, so I gave it a shot. I am all for sane defaults in app development. For context, I'm not a Kubernetes expert. But I've been doing Rails and webapps a long time. I'm on an M1 Air. Like MasterBuilderConstruction, I too am porting a construction site which is, for now, just a one-page HTML brochure site.
I ran into some hiccups when trying this our — ultimately unsuccessful too. If someone could help me figure out where I went wrong, I'd appreciate that.
Some questions I had while going through this were
nokogiri
which need special attentionThese said though, I really want Kuby to "just work"™. The idea of sane defaults for deployments is something I can get behind.
Details of my friction log is here https://gist.github.com/78f8f768a56079902dd29012be675dba
Beta Was this translation helpful? Give feedback.
All reactions