Skip to content

Kubernetes installation

We provide an easy kubernetes installation based on Kustomize to deploy the complete Bleemeo Community Edition stack. However, the default kustomization isn’t properly configured and should be used with caution.

Starts by creating a kustomization.yaml file in your project:

resources:
- github.com/bleemeo/bleemeo-community-edition/kubernetes?ref=main

Create the namespace used to run Bleemeo community edition PODs

Terminal window
kubectl create namespace bleemeo-community-edition

Then, apply the kustomization to your cluster:

Terminal window
kubectl apply -k .

After a few minutes, you should have the Bleemeo Community Edition stack running in your cluster.

The Kustomization let you configure the Bleemeo stack by overriding the default configuration or by patching the resources.

Now let’s say you want to override the nats configuration, start by creating your own nats config:

nats.conf
server_name: "my-bleemeo-mqtt"
jetstream {}
mqtt {
port: 1883
}

Then, edit your kustomization.yaml file in your project:

configMapGenerator:
- name: nats-config
files:
- nats.conf
resources:
- github.com/bleemeo/bleemeo-community-edition/kubernetes?ref=main

As a result, the nats deployment will use your custom configuration.

You can also change the number of replicas of squirreldb (or any other components) by simply specifying the number of replicas in your kustomization.yaml file:

replicas:
- name: squirreldb
count: 3
resources:
- github.com/bleemeo/bleemeo-community-edition/kubernetes?ref=main