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.
Deploying with kubernetes
Section titled “Deploying with kubernetes”Starts by creating a kustomization.yaml file in your project:
resources:- github.com/bleemeo/bleemeo-community-edition/kubernetes?ref=mainCreate the namespace used to run Bleemeo community edition PODs
kubectl create namespace bleemeo-community-editionThen, apply the kustomization to your cluster:
kubectl apply -k .After a few minutes, you should have the Bleemeo Community Edition stack running in your cluster.
Configuration
Section titled “Configuration”The Kustomization let you configure the Bleemeo stack by overriding the default configuration or by patching the resources.
Override nats configuration
Section titled “Override nats configuration”Now let’s say you want to override the nats configuration, start by creating your own nats config:
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=mainAs a result, the nats deployment will use your custom configuration.
Changing the number of replicas
Section titled “Changing the number of replicas”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