Rest-Proxy Migration Poc Description The Rest proxy is linked to the Confluent cluster via the kubernetes Secret key (the secret has the cluster bootstrap and as well as secret name and secret). Prerequisites - You must have a rest proxy deployed and connected to the source cluster (Example :- cluster id:lkc-gqjvpv name:test-cluster). - You must have a destion clsuter ready where you want the rest-proxy to be migrate(Example:- cluster id:lkc-8nqr0). Step-1: Create a new **Secret** with the Same **SA** for the destination cluster Step-2: with the new secret using the kafka-rest.properties file create a new kubernetes secret (this secret will have the destination cluster information). For Example : kafka-rest.properties ssl.endpoint.identification.algorithm=https client.sasl.mechanism=PLAIN request.timeout.ms=20000 bootstrap.servers=xx.yyy.zzz.gcp.confluent.cloud:9092 retry.backoff.ms=500 client.sasl.jaas.config=org.apache.kafka.common.security.plain.PlainLoginModule required username={API_KEY_HERE} password={API_SECRET_HERE} client.security.protocol=SASL_SSL Create kubernetes Secret kubectl create secret generic kafka-rest-config --from-file=kafka-rest.properties Step-3: Now that the newly created secret has all the information we needed to connect with the destination cluster. # We can migrate the **Rest-Proxy** in 2 ways. 1. We can delete the old proxy and create a new one with the destination cluster information and we can use kubectl rollout restart to restart the pod.Rolling out restart is the ideal approach to restarting your pods because your application will not be affected or go down. For rolling out a restart, use the following command: kubectl rollout restart deployment -n it will restart the pod and after few min it will be connected to the destination cluster.
Rahib
Rahib