且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何解决通过"schedulerService"字段表示的不满意依赖性?

更新时间:2022-01-11 01:32:26

由于某些原因,此自定义版本无法读取server-config.yaml.即使它在server-deployment.yaml中显示为配置映射之一.因此,我将kubenetes任务平台属性移到了CustomBuild SCDF Spring引导项目的application.properties中.因此,我从该项目构建的docker映像也具有kubernetes属性.添加此文件后,server-deployment.yaml能够获取k8平台属性,并且SCDF开始成功运行.

This custom build doesn't read the server-config.yaml for some reason. Even if its shown in the server-deployment.yaml as one of the config-maps. So I moved the kubenetes task platform properties to application.properties of the CustomBuild SCDF Spring boot project. So the docker image I built from this project the kubernetes properties as well. After adding this the server-deployment.yaml able to get the k8 platform properties and SCDF started running successfully.

我的application.properties当前如下所示.

My application.properties currently looks like below.

spring.application.name=CustomSCDF
spring.datasource.url=jdbc:oracle:thin:@datasource_url
spring.datasource.username=username
spring.datasource.password=Password
spring.datasource.driver-class-name=oracle.jdbc.OracleDriver

#properties moved from server-config.yaml
spring.cloud.dataflow.task.platform.kubernetes.accounts.default.image-pull-policy= always
spring.cloud.dataflow.task.platform.kubernetes.accounts.default.entry-point-style= exec
spring.cloud.dataflow.task.platform.kubernetes.accounts.default.limits.cpu=4

我认为只有定制的应用程序会遇到此问题.但这需要更加清楚.

I think only the custom built application will face this issue. But this needs more clarity.