Superstream "Bring Your Own Cloud" is the perfect solution for customers who prefer or can't have an external connection from outside their cloud to their Kafka clusters.
Step 1: Check out our "Environment Readiness Checklist"
Review the following checklist to ensure your environment is ready for deployment and to avoid potential issues.
Step 2: Deploy
Superstream is using a Helm chart to deploy its engine.
You can deploy as many engines as needed and spread your clusters between them based on your environmental preferences.
The Superstream chart will deploy the following pods:
2 Superstream engines
2 Superstream auto-scaler instances
3 NATS brokers
1 Superstream syslog adapter
1 Telegraf agent for monitoring
1. Configure the custom_values.yaml file
Create a custom_values.yaml file and edit the relevant values (An example can be found here).
You can always get your superstreamAccountId and superstreamActivationToken through the console or within the automatic email you received when you signed up.
custom_values.yaml
############################################################
# GLOBAL configuration for Superstream Engine
############################################################
global:
engineName: "" # Define the superstream engine name within 32 characters, excluding '.', and using only lowercase letters, numbers, '-', and '_'.
superstreamAccountId: "" # Provide the account ID associated with the deployment, which could be used for identifying resources or configurations tied to a specific account.
superstreamActivationToken: "" # Enter the activation token required for services or resources that need an initial token for activation or authentication.
skipLocalAuthentication: true
############################################################
# NATS config
############################################################
# NATS HA Deployment. Default "true"
nats:
config:
cluster:
enabled: true
# NATS storageClass configuration. Default is blank "".
jetstream:
fileStore:
pvc:
storageClassName: ""
nats:
port: 4222
tls:
enabled: false
# set secretName in order to mount an existing secret to dir
secretName: ""
localCa:
enabled: false
secretName: ""
############################################################
# Kafka Autoscaler config
############################################################
# Optional service to automatically scale the Kafka cluster up/down based on CPU and memory metrics
autoScaler:
enabled: true
2. Deploy
Head over to the custom_values.yaml file location and run:
3. *Optional* Expose (When Client connectivity is needed. Not a mandatory requirement)
For client connectivity from outside the Kubernetes environment being used, it is necessary to expose the Superstream engine on port 4222 outside of the Kubernetes cluster where Superstream is deployed.
Here is an example YAML file to illustrate the required service configuration:
If there is no default storageClass configured for the Kubernetes cluster or there is a need to choose a custom storageClass, it can be done by specifying its name in the values.yaml file.
# NATS storageClass configuration. The default is blank "".
jetstream:
fileStore:
pvc:
storageClassName: ""
Appendix E - Deploy Superstream Engine with internal authentication mode on
To enable secure client authentication for the Superstream Engine, edit thevalues.yaml file and set the skipLocalAuthentication parameter to false.
############################################################
# GLOBAL configuration for Superstream Engine
############################################################
global:
engineName: "" # Define the superstream engine name within 32 characters, excluding '.', and using only lowercase letters, numbers, '-', and '_'.
superstreamAccountId: "" # Provide the account ID associated with the deployment, which could be used for identifying resources or configurations tied to a specific account.
superstreamActivationToken: "" # Enter the activation token required for services or resources that need an initial token for activation or authentication.
skipLocalAuthentication: false
Appendix F - Deploy Superstream Engine using labels, tolerations, nodeSelector and etc'
To inject custom labels into all services deployed by Superstream, utilize the global.labels variable.
############################################################
# GLOBAL configuration for Superstream Engine
############################################################
global:
engineName: "" # Define the superstream engine name within 32 characters, excluding '.', and using only lowercase letters, numbers, '-', and '_'.
superstreamAccountId: "" # Provide the account ID associated with the deployment, which could be used for identifying resources or configurations tied to a specific account.
superstreamActivationToken: "" # Enter the activation token required for services or resources that need an initial token for activation or authentication.
skipLocalAuthentication: true
labels:
tests: ok
To configure tolerations, nodeSelector, and affinity settings for each deployed service, the adjustments in the following example need to be done:
############################################################
# GLOBAL configuration for Superstream Engine
############################################################
global:
engineName: "" # Define the superstream engine name within 32 characters, excluding '.', and using only lowercase letters, numbers, '-', and '_'.
superstreamAccountId: "" # Provide the account ID associated with the deployment, which could be used for identifying resources or configurations tied to a specific account.
superstreamActivationToken: "" # Enter the activation token required for services or resources that need an initial token for activation or authentication.
skipLocalAuthentication: true
superstreamEngine:
tolerations:
- key: "app"
value: "connectors"
effect: "NoExecute"
autoScaler:
tolerations:
- key: "app"
value: "connectors"
effect: "NoExecute"
syslog:
tolerations:
- key: "app"
value: "connectors"
effect: "NoExecute"
telegraf:
tolerations:
- key: "app"
value: "connectors"
effect: "NoExecute"
nats:
podTemplate:
merge:
spec:
tolerations:
- effect: NoSchedule
key: node-role.kubernetes.io/master
operator: Exists
Appendix G - Engine deployment with TLS
This guide provides step-by-step instructions for deploying the Superstream Engine with TLS-enabled NATS. The setup includes creating necessary secrets, configuring trust for CA certificates, and aligning Helm chart values for deployment.
Prerequisites
TLS Certificate Files: Ensure you have the tls.crt and tls.key files for securing NATS communication.
Trusted CA Certificates: Prepare a ca-certificates.crt file that includes the trusted CA certificates for the data plane applications.
1. Create the TLS Secret for NATS
Create a Kubernetes TLS secret in the superstream namespace using the provided tls.crt and tls.key files:
Ensure the tls.crt and tls.key files are valid and signed by a trusted CA.
The ca-certificates.crt file should include all necessary trusted CA certificates for the data plane applications.
Align the secret names in custom_values.yaml with the names created in the Kubernetes namespace.
Best practices
Dev / Staging environments
Connecting your Development/Staging Kafka Clusters to Superstream is recommended. This can be done using either one or more dedicated Superstream engines (data planes) for each environment or the same engine connected to the production clusters.