Generate the hybrid configuration file when custom certificates are not used for Ingress and Kafka clusters.
Generate the hybrid configuration file only if you are not using custom certificates for Ingress and Kafka clusters.
Ensure that you have the latest CA certificates obtained after installing services. If not, update the CA certificates and regenerate the hybrid configuration file after restarting the service.
- Run the script to connect the Kafka node ports with the standalone Controller:
~/appd-charts/utils$ bash prepare-hybrid.sh
Sample output:
Writing Kafka CA Cert
Writing Schema registry CA Cert
Writing AnomalyDetectionKafkaSSLProducer
Writing AnomalyDetectionKafkaConsumerSSL
Writing configure script
Creating archive of hybrid config
hybrid-config/
hybrid-config/kafka-ca.crt
hybrid-config/AnomalyDetectionKafkaConsumerSSL
hybrid-config/configure.sh
hybrid-config/schema-registry-ca.crt
hybrid-config/AnomalyDetectionKafkaSSLProducer
Completed
This script generates the hybrid-config.tar file that includes the required configuration files.
- Copy the
hybrid-config.tar file to your standalone Controller instance.
- Log in to the standalone Controller.
- Locate and extract the
hybrid-config.tar file contents.
tar -xvf hybrid-config.tar
- Run the
configure.sh script to provision the Controller with certificates and secrets to connect to the Kubernetes cluster:
The following script is extracted from the hybrid-config.tar file.
Output:
Using controller home as /home/appdynamics/appdynamics and keystore password as changeit
Do you want to proceed? (y/n): y
Creating Kafka truststore
Certificate was added to keystore
Creating schema registry truststore
Certificate was added to keystore
Certificate was added to keystore
Writing obfuscated producer config
Writing obfuscated consumer config
Configure MySQL for SSL
Using controller ip as <IP>
Is this IP address correct? (y/n): y
DNS name should match the Virtual Appliance cluster hybrid dbHost configuration
Please enter the DNS name (default: 10.0.0.1.nip.io): <DNS_Name_of_Classic_On_Premises_Controller>
Using controller IP as 10.0.0.1
Updating certs at /home/appdynamics/appdynamics/platform/controller/db/data using CA key file ca-key.pem and cert file ca.pem
Certificate request self-signature ok
subject=CN = mysql
MySQL certificate generated successfully: server-cert.pem
Completed
Note:
Certificates in the Virtual Appliance expire after 60 days. To maintain connectivity, you must copy the updated certificates from the Virtual Appliance to your Splunk AppDynamics On-Premises Classic Controller. To do this, regenerate the hybrid configuration file on the Virtual Appliance and then copy it to your Standalone Controller.