Skip to main content

Deploy Kubernetes Operator

This documentation covers how to set up the communication between your client application and the Responsive control plane, as well as how to deploy the operator in your kubernetes context.


The Responsive platform uses Open Telemetry to collect the metrics it needs to make autoscaling decisions. You'll need the following information:

Environment VariableDescription
PATH_TO_JAVA_LIBSConfiguring the open telemetry agent requires passing in the javaagent JAR. If you follow Step 1 above, this should be part of your Java CLASSPATH - check your container build to see where your JARs are placed.
PATH_TO_OTEL_JMXOpen Telemetry needs a JMX configuration to know which metrics to export to Responsive. You should put this configuration file in that path.
NAMESPACEThis is the namespace that your streams applications in kubernetes runs in.
APPLICATIONThis is the name of your streams application in kubernetes.
CONTROLLER_ENDPOINTThis is https://<org-name> the corresponding controller deployed in other regions)
API_KEY/API_SECRETThese will be provided to you. We recommend you load these as environment variables through kubernetes secrets.
ENVIRONMENTA name for the environment in which the application runs. A good option here would be to use the name of the kubernetes cluster that runs the application.

Once you have the values for these, you should run your Kafka Streams with these additional arguments to configure the metrics collector:


Deploy the Operator


Install the Responsive Policy Custom Resource Definition (CRD) by pulling the latest version and applying it to your Kubernetes cluster:

export RESPONSIVE_OPERATOR_VERSION=<insert the latest version here>
kubectl apply -f${RESPONSIVE_OPERATOR_VERSION}/crd.yml

Create a namespace for the operator, in this example responsive:

kubectl create namespace responsive

Configure Secrets

Create a secret which loads the value of your Controller API key into the Operator's pods:

export API_KEY=<insert your api key ID here>
export SECRET=<insert your api key secret here>
cat <<EOF >>
kubectl create secret generic --namespace responsive ctl-secret

Create a secret which loads the value of your Kafka API key into the Operator's pods:

$ export LOGGING_KAFKA_API_KEY=<insert your logging kafka api key ID here>
$ export LOGGING_KAFKA_SECRET=<insert your loggin kafka api key secret here>
$ cat <<EOF >>
$ kubectl create secret generic --namespace responsive logging-kafka-secret

Install via Helm

You will need to install helm to apply the CRD. Once that is installed, install the Operator Chart in your kubernetes cluster:

$ export ORG_NAME=<your org name>
$ helm install responsive-operator oci:// \
--set controllerEndpoint=dns:///${ORG_NAME} \
--set logging.kafka.keySecret=logging-kafka-secret \
--set \
--set logging.kafka.topic=responsive.telemetry.logs.${ORG_NAME}.operator \
--set operatorOpts="-environment ${ENVIRONMENT}"
--namespace responsive

If this has worked, you should see the responsive-operator pod running in your k8s responsive namespace:

kubectl get pods -n responsive

Next Steps