Hi,
I have kafka micro service with application.yml like below in intellij IDEA for springboot 3.0.5 and JDK 17 application
When I do
Jenkins build then build is successful. But while building, deploying image on OpenShift 4 I am getting below type of errors.
If I change ${ENV} value with hard coded environment profile value like "local" I get Kafka boot strap server localhost:9092 not recognized error.
If I change below line (I am running zookeeper server, Kafka server on my local windows laptop only by starting from command prompt)
bootstrap-servers: localhost:9092
as below by relacing localhost with machine name
bootstrap-servers: WABC999F1111.us.aaa.com:9092
I am getting errors like below
How to declare {ENV} profile properly in YAML file to load corresponding required environment? How to define Kafka localhost:9092 so that it is recognized by OpenShift 4.0 without any issues. Please advise.