pubsubplus-openshift-ha

by joaquinito2051

Helm chartv3.3.2Apache-2.0

Deploy an HA redundancy group of Solace PubSub+ Event Broker Software on OpenShift

About this chart

Solace PubSub+ Software Event Broker - Helm Chart

The Solace PubSub+ 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 an HA redundancy group deployment of a Solace PubSub+ Software Event Broker on a Kubernetes cluster using the Helm package manager.

Detailed documentation is provided in the Solace PubSub+ Software Event Broker on OpenShift 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 PubSub+ Software 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 openshift-helm-charts https://charts.openshift.io
helm install my-release openshift-helm-charts/pubsubplus-openshift-ha

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 PubSub+ 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 PubSub+ chart and their default values. For a detailed discussion refer to the Deployment Considerations in the PubSub+ 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 \
  openshift-helm-charts/pubsubplus-openshift-ha
  • 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 --name my-release -f my-values.yaml openshift-helm-charts/pubsubplus-openshift-ha

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 nodestrue
solace.podDisruptionBudgetForHAtrue will set up a Pod disruption budget for the PubSub+ 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), prod100, prod1k, prod10k, prod100k, prod200k.prod100
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. Will autogenerate it if not provided. Important: refer to the the information from helm status how to retrieve it and use it for helm upgrade.Undefined, meaning autogenerate
solace.timezoneTimezone setting for the PubSub+ container. Valid values are tz database time zone names.Undefined, default is UTC
solace.extraEnvVarsList of extra environment variables to be added to the PubSub+ container. A primary use case is to specify configuration keys. Important: env variables defined here will not override the ones defined in solaceConfigMap.Undefined
solace.extraEnvVarsCMThe name of an existing ConfigMap containing extra environment variablesUndefined
solace.extraEnvVarsSecretThe name of an existing Secret containing extra environment variables (in case of sensitive data)Undefined
image.repositoryThe image repo name and path to the PubSub+ container imageregistry.connect.redhat.com/solace/pubsubplus-standard
image.tagThe Solace container image tag. It is recommended to specify an explicit tag for production use For possible tags, refer to the Solace Docker Hub repolatest
image.pullPolicyImage pull policyIfNotPresent
image.pullSecretNameName of the ImagePullSecret to be used with the PubSub+ container image registryUndefined, meaning no ImagePullSecret used
securityContext.enabledtrue enables to using defined fsGroup and runAsUser. Set to false if fsGroup and runAsUser conflict with PodSecurityPolicy or Openshift SCC settings.false
securityContext.fsGroupSpecifies fsGroup in pod security contextset to default non-zero id 1000002
securityContext.runAsUserSpecifies runAsUser in pod security contextset to default PubSub+ appuser id 1000001
serviceAccount.createtrue will create a service account dedicated to the deployment in the namespacetrue
serviceAccount.nameRefer to https://helm.sh/docs/topics/chart_best_practices/rbac/#using-rbac-resourcesUndefined
tls.enabledEnable to use TLS to access exposed broker servicesfalse (not enabled)
tls.serverCertificatesSecretName of the Kubernetes Secret that contains the certificates - required if TLS is enabledUndefined
tls.certFilenameName of the Certificate file in the serverCertificatesSecrettls.crt
tls.certKeyFilenameName of the Key file in the serverCertificatesSecrettls.key
service.typeHow to expose the service: options include ClusterIP, NodePort, LoadBalancerLoadBalancer
service.annotationsservice.annotations allows to add provider-specific service annotationsUndefined
service.portsDefine PubSub+ service ports exposed. servicePorts are external, mapping to cluster-local pod containerPortsinitial set of frequently used ports, refer to values.yaml
storage.persistentfalse to use ephemeral storage at pod level; true to request persistent storage through a StorageClasstrue, false is not recommended for production use
storage.slowtrue to indicate slow storage used, e.g. for NFS.false
storage.customVolumeMountcustomVolumeMount can be used to specify a YAML fragment how the data volume should be mounted instead of using a storage class.Undefined
storage.useStorageClass Name of the StorageClass to be used to request persistent storage volumesUndefined, meaning to use the "default" StorageClass for the Kubernetes cluster
storage.sizeSize of the persistent storage to be used; Refer to the Solace documentation and online calculator for storage size requirements30Gi
storage.monitorStorageSizeIf provided this will create and assign the minimum recommended storage to Monitor pods. For initial deployments only.1500M
storage.useStorageGrouptrue to use a single mount point storage-group, as recommended from PubSub+ version 9.12. Undefined or false is legacy behavior. Note: legacy mount still works for newer versions but may be deprecated in the future.Undefined

Deploy pubsubplus-openshift-ha with OpenTenant

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