Deploying CDP Mongo Sink Connector
This section describes the steps to configure and deploy the HCL CDP Mongo Sink Connector on an AKS cluster using the provided Helm chart.
Before you begin
The required HCL CDP Helm charts and container images must be downloaded and pushed to the container registry. For more information, see the Downloading HCL CDP Artifacts section.
Create the CDP Mongo Sink Connector secret in HashiCorp Vault with the following sample key-value structure and update with actual values:
{
"CONNECT_BOOTSTRAP_SERVERS": "",
"CONNECT_CONSUMER_SASL_JAAS_CONFIG": "",
"CONNECT_CONSUMER_SASL_MECHANISM": "",
"CONNECT_CONSUMER_SECURITY_PROTOCOL": "",
"CONNECT_PRODUCER_SASL_JAAS_CONFIG": "",
"CONNECT_PRODUCER_SASL_MECHANISM": "",
"CONNECT_PRODUCER_SECURITY_PROTOCOL": "",
"CONNECT_SASL_JAAS_CONFIG": "",
"CONNECT_SASL_MECHANISM": "",
"CONNECT_SECURITY_PROTOCOL": ""
}
Procedure
- Configure chart-location/cdp-mongo-sink-connector/values.yaml with the environment-specific configuration.
- Enable ConfigMaps and configure the required CDP Mongo Sink Connector application URLs.
- Update the CDP Mongo Sink Connector container image repository and required image version/tag.
-
Verify the image pull secret exists.
kubectl get secret hclcr-cred -n cdp-dev-app - Enable Ingress and configure the required hostname, path, and TLS settings.
-
Ensure the
vault-credsSecret exists.kubectl get secret vault-creds -n cdp-dev-app -
The init container retrieves the
mongo-sink-connectorsecret from CDP_Secrets and writes it to /etc/secrets/mysecrets.json. -
Verify or create the namespace.
kubectl get namespace cdp-dev-appIf the namespace does not exist, create it:
kubectl create namespace cdp-dev-app -
Install CDP Mongo Sink Connector using Helm.
helm install cdp-mongo-sink-connector \ chart-location/cdp-mongo-sink-connector \ -f chart-location/cdp-mongo-sink-connector/values.yaml \ -n cdp-dev-app -
Verify the Helm release status.
helm list -n cdp-dev-appExpected status:
deployed. -
Verify the deployment and pods.
kubectl get deployment -n cdp-dev-app kubectl get pods -n cdp-dev-app -l k8s-app=cdp-mongo-sink-connectorExpected pod status: READY
1/1, STATUSRunning.