pubsubplus

by Solace Corporation

Helm chartv3.10.0Apache-2.0Verified publisher

Deploy a single-node non-HA Solace Event Broker Software onto a Kubernetes Cluster

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 a single-node deployment 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

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 to helm install. For example,
helm install my-release \
  --set solace.redundancy=true,solace.usernameAdminPassword=secretpassword \
  solacecharts/pubsubplus
  • 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

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

Note: as an alternative to creating a new file you can download the values.yaml file with default values and edit that for overrides.

For more ways to override default chart values, refer to Customizing the Helm Chart Before Installing.

ParameterDescriptionDefault
nameOverrideKubernetes objects will be named as <release-name>-nameOverrideUndefined, default naming is <release-name>-<chart-name>
fullnameOverrideKubernetes objects will be named as fullnameOverrideUndefined, default naming is <release-name>-<chart-name>
solace.redundancyfalse will create a single-node non-HA deployment; true will create an HA deployment with Primary, Backup and Monitor nodesfalse
solace.podDisruptionBudgetForHAtrue 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.sizeEvent 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, prod100kprod1k
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 MiBUndefined
solace.podModifierEnabledEnables 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.usernameAdminPasswordThe password for the "admin" management user. The password will autogenerate it i

Deploy pubsubplus with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has pubsubplus 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartpubsubplus is pinned at v3.10.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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