Kubernetes makes application deployment fast and easy by providing set of automated features including the deployment of stateless applications. To utilize Kubernetes to manage deployment of complex stateful applications and provide lifecycle management we need to make use of the Kubernetes Operator.
Solace’s Kubernetes Operator aka Solace PubSub+ Event Broker Operator manages Kubernetes and Solace PubSub+ Event Broker deployment via Kubernetes api, allowing the event broker to be managed in a declarative fashion.
Solace’s operator is provisioned to provide simple one command deployment of our event brokers in HA and non-HA environments. This makes deployment and lifecycle management even easier and has additional support to enable Prometheus monitoring.
Key Features
- Automates broker upgrades
- Automates deployment repairs
- Provides status of the deployments
Components
- Kubernetes API – This connects the operator to the Kubernetes management.
- Customer Resource Definition (CRD) – This is a YAML file that identifies what the operator manages to Kubernetes.
- Application Interface – Pulls information from and makes changes to the application.
- Controller – Control loop to listen for the declarative state requests for the CRD from the K8S API, plan the state changes for the application, activate these changes in the application, validates application state and provides application state to Kubernetes.
Below is an example YAML file of the PubSub+ Event Broker CRD:
apiVersion: pubsubplus.solace.com/v1beta1 kind: PubSubPlusEventBroker metadata: name: non-ha-standalone-example spec: redundancy: false
Operational Overview
- PubSub+ Broker Custom Resource Definition (CRD) provided to K8s API
- Kubernetes API requests about the custom resource directed to Solace Operator
- Operator pulls state
- Operator makes changes based on declarative API
- Solace reports state
Where to get the PubSub+ Kubernetes Operator
The operator is available in Operator Hub for easy install. The below codelab will show you how to install the operator directly from the manifest file and deploy an event broker instance.
Codelab Steps:
- Overview
- Prerequisites
- Environment Setup
- Install Solace PubSub+ Event Broker Operator
- Install Solace PubSub+ Event Broker
- Test Solace PubSub+ Event Broker Deployment
- Takeaways
To learn more, check out our Operator’s User Guide.