We are going to switch the microservice deployment from using the local Kafka instance to using the Azure-hosted, Kafka-compatible Event Hub instance:
- First, let's delete the local deployment:
helm del --purge social-network
- Modify the ./deployment/helm/user-service/templates/deployment.yaml file to change line 32 until the name: SPRING_PROFILES_ACTIVE line:
- name: SPRING_CLOUD_STREAM_KAFKA_BINDER_BROKERS value: "<your eventhub name>.servicebus.windows.net:9093" - name: SPRING_CLOUD_STREAM_KAFKA_BINDER_DEFAULT_BROKER_PORT value: "9093" - name: SPRING_CLOUD_STREAM_KAFKA_BINDER_CONFIGURATION_SECURITY_PROTOCOL value: "SASL_SSL" - name: SPRING_CLOUD_STREAM_KAFKA_BINDER_CONFIGURATION_SASL_MECHANISM value: "PLAIN" ...