1

I have 4 local ubuntu servers with 8GB RAM each that I'm attempting to setup a kubernetes cluster on. But if I conjure-up kubernetes from the first server and choose local, it appears to be trying to install everything on that one server (and probably running out of RAM. How do I conjure-up kubernetes on multiple servers?

| improve this question | | | | |
3

The localhost cloud type in Conjure-Up will install all the units in LXD containers locally on the host you run conjure-up on. This is one of the easiest ways to install Kubernetes with Conjure-Up but you do need a server that's powerful enough to run all these containers.

If you want to install Kubernetes with Conjure-Up on multiple servers (bare metal deployment), you should look at the MAAS cloud type. Refer to the MAAS documentation[1] for configuration instructions.

Once you have MAAS running, you'll be able to point Conjure-Up to your MAAS cloud and install Kubernetes on the servers. But looking at the The Canonical Distribution Of Kubernetes Juju bundle[2], it looks like you'll need at least 10 machines to deploy CDK on MAAS.

The Kubernetes Core bundle[3] deploys less units. It looks like it would run on 4 machines.

You could also tweak the Juju charm bundles to deploy in LXD containers on your servers instead of directly on the physical servers but that is probably outside the scope of this question.

One other thing you can do if you just want to get started with Kubernetes is look at microk8s[4]. microk8s is:

  • Fast and Secure upstream Kubernetes
  • Designed for developing Kubernetes Workloads locally
  • Get a full Upstream Kubernetes system running in under 60 seconds

[1]https://docs.maas.io/2.4/en/

[2]https://api.jujucharms.com/charmstore/v5/canonical-kubernetes/archive/bundle.yaml

[3]https://jujucharms.com/kubernetes-core/

[4]https://microk8s.io/

| improve this answer | | | | |
  • I ended up looking at alternatives to conjure. I got Rancher working, but haven't yet gotten distributed disk such as glusterfs or ceph working. Without that, a multi-system setup isn't fully usable. Thank you for your detailed response. – Korey Jan 22 '19 at 14:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.