pubsubplus-dev
Deploy a minimum footprint single-node non-HA Solace Event Broker Software onto a Kubernetes Cluster for development purposes
About this chart
Solace Event Broker Software - Helm Chart
The Solace Platform's software event broker efficiently streams event-driven information between applications, IoT devices and user interfaces running in cloud, on-premises, and hybrid environments using open APIs and protocols like AMQP, JMS, MQTT, REST and WebSocket. It can be installed into a variety of public and private clouds, PaaS, and on-premises environments, and brokers in multiple locations can be linked together in an event mesh to dynamically share events across the distributed enterprise.
Overview
This chart bootstraps minimum single-node deployment for Developers of a Solace Event Broker on a Kubernetes cluster using the Helm package manager.
Detailed documentation is provided in the Solace Event Broker on Kubernetes Documentation.
Prerequisites
- Kubernetes 1.10 or later platform with adequate CPU and memory and storage resources for the targeted scaling tier requirements
- Helm package manager v3 client installed
- If using a private container image registry, load the Solace Event Broker container image and for signed images create an image pull secret
- With persistent storage enabled (see in Configuration):
- Specify a storage class unless using a default storage class in your Kubernetes cluster
Also review additional deployment considerations.
Create a deployment
helm repo add solacecharts https://solaceproducts.github.io/pubsubplus-kubernetes-helm-quickstart/helm-charts
helm install my-release solacecharts/pubsubplus-dev
Note: the release name is not recommended to exceed 28 characters
Use a deployment
Obtain information about the deployment and services:
helm status my-release
Refer to the detailed Solace Kubernetes documentation for:
- Validating the deployment; or
- Troubleshooting
- Modifying or Upgrading
Delete a deployment
helm delete my-release
kubectl get pvc | grep data-my-release
# Delete any PVCs related to my-release
Important: Ensure to delete existing PVCs if reusing the same deployment name for a clean new deployment.
Configuration
The following table lists the configurable parameters of the Solace chart and their default values. For a detailed discussion refer to the Deployment Considerations in the Solace Kubernetes documentation.
There are several ways to customize the deployment:
- Override default values using the
--set key=value[,key=value]argument tohelm install. For example,
helm install my-release \
--set solace.redundancy=true,solace.usernameAdminPassword=secretpassword \
solacecharts/pubsubplus-dev
- Another option is to create a YAML file containing the values to override and pass that to Helm:
# Create file
echo "# Overrides:
solace:
redundancy: true
usernameAdminPassword: secretpassword" > my-values.yaml
# Now use the file:
helm install my-release -f my-values.yaml solacecharts/pubsubplus-dev
For production environments, we recommend using an existing Kubernetes secret for the admin password instead of specifying it in plain text:
# Create a Kubernetes secret with the admin password
# IMPORTANT: The key in the secret MUST be 'username_admin_password'
kubectl create secret generic my-admin-secret --from-literal=username_admin_password=secretpassword
# Install the chart using the existing secret
helm install my-release \
--set solace.redundancy=true,solace.usernameAdminPasswordSecretName=my-admin-secret \
solacecharts/pubsubplus-dev
Note: as an alternative to creating a new file you can download the
values.yamlfile with default values and edit that for overrides.
For more ways to override default chart values, refer to Customizing the Helm Chart Before Installing.
| Parameter | Description | Default |
|---|---|---|
nameOverride | Kubernetes objects will be named as <release-name>-nameOverride | Undefined, default naming is <release-name>-<chart-name> |
fullnameOverride | Kubernetes objects will be named as fullnameOverride | Undefined, default naming is <release-name>-<chart-name> |
solace.redundancy | false will create a single-node non-HA deployment; true will create an HA deployment with Primary, Backup and Monitor nodes | false |
solace.podDisruptionBudgetForHA | true will set up a Pod disruption budget for the Solace Event Broker in HA deployment, false does not set up a pod disruption budget. HA deployment with Primary, Backup and Monitor nodes requires a minimum of 2 nodes to reach a quorum, the pod disruption budget is defaulted to 2 minimum nodes when enabled. | false |
solace.size | Event broker simple vertical scaling by number of client connections. Ignored if solace.systemScaling is set. Options: dev (requires minimum resources but no guaranteed performance), prod1k, prod10k, prod100k | prod1k |
solace.systemScaling.* | Event broker fine-grained vertical scaling definition. If defined, all sub-settings must be provided and these settings will override solace.size. For scaling documentation, look for "system scaling" at docs.solace.com. Use the online calculator to determine CPU, Memory and Storage requirements for "Container (messaging)" type. maxConnections: max supported number of client connections maxQueueMessages: max number of queue messages, in millions of messages maxSpoolUsage: max Spool Usage, in MB. Also ensure adequate storage.size parameter, use the calculator cpu: CPUs in cores memory: host Virtual Memory, in MiB | Undefined |
solace.podModifierEnabled | Enables modifying (reducing) CPU and memory resources for Monitoring nodes in an HA deployment. Also requires the "solace-pod-modifier" Kubernetes admission plugin deployed to work. | Undefined, meaning not enabled. |
solace.usernameAdminPassword | The password for the "admin" management user |
Deploy pubsubplus-dev with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has pubsubplus-dev on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartpubsubplus-dev is pinned at v3.10.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply