spring-cloud-dataflow
spring-cloud-dataflow copied to clipboard
Task running in k8s scdf failed to configure the DataSource
it works in local scdf, but failed in k8s.
Hello.
I was unable to reproduce the issue you specified using a fresh Spring Cloud Task application created from start.spring.io and launching the application from SCDF to the K8's platform.
Can you provide the following:
1: Version of SCDF that you are using
2: A sample application repository on github that replicates the behavior .
Thanks
Hi.
-
The version of SCDF is 2.8.3 and my MySQL database(5.7) is running on aws
-
The spring cloud task demo(timestamp) imported from dockerhub is work, but when I downloaded the source code and build it without h2 dependency, it goes failed.
-
If I build the task with h2 dependency, the Application can run, but the SCDF can not track any task info, like start time, end time or exit code etc.
Could you have any strategied to help me to debug it?
Thank.
What repository are you obtaining the timestamp sample?
Yes. I have used dockerfile to build the image. Could it be a problem? Here is the dockerfile.
Try the timestamp sample from the Spring Cloud Task project located here: https://github.com/spring-cloud/spring-cloud-task/tree/main/spring-cloud-task-samples/timestamp
#Build the app
mvn clean install
#Build the docker container
mvn spring-boot:build-image
Closing for lack of feedback. If there are any additional problems, please create a new issue.