spring-cloud / spring-cloud-dataflow

A microservices-based Streaming and Batch data processing in Cloud Foundry and Kubernetes
https://dataflow.spring.io
Apache License 2.0
1.11k stars 582 forks source link

Scheduler Property Question #5411

Open Grip-Jinsu opened 1 year ago

Grip-Jinsu commented 1 year ago

I want to set the timezone as a property option when registering Spring Cloud Data Flow Scheduler. Is that possible? I've tried adding several options, but it didn't work

I would like to default to Asia/Seoul as timezone setting with CronJob spec when registering Scheduler.

스크린샷 2023-07-22 오후 4 47 18
cppwfs commented 1 year ago

Thank you for opening the issue. Currently, Kubernetes does not appear to support the timezone as a part of the cronjob spec. https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/#cron-job-limitations

If you feel this was closed in error please add a comment. Thanks!

Grip-Jinsu commented 1 year ago

Hello, thank you for your reply. @cppwfs

As a result of my test, timeZone setting in spec was possible from Kubernetes 1.27 stable version. In fact, it worked well when I modified cronJob YAML myself.

The document you told me also specifies the corresponding version, but is it difficult to add the function?

30E30FF4-0986-403E-AE5D-FBE47CC2C9B6

cppwfs commented 1 year ago

Thank you for the correction.

cppwfs commented 1 year ago

Spring Cloud Deployer Kubernetes needs to add the ability to pass timezone to a cronjob. Note: The latest release of Fabric8 now supports it.

Grip-Jinsu commented 1 year ago

Wow this is great news for me! Thank you :)

corneil commented 1 year ago

Spring Cloud Deployer Kubernetes needs to add the ability to pass timezone to a cronjob. Note: The latest release of Fabric8 now supports it.

Is it in fabric8 5.x or 6.x

Grip-Jinsu commented 1 year ago

Hello, can I use the docker hub image version as 2.0.11-SNAPSHOT when reflecting future features?

Also, please let me know how to set the scheduler property.

@cppwfs

cppwfs commented 1 year ago

Currently, it is supported in the Fabric8 6.x line and the Spring Cloud Deployer Kubernetes will need to be upgraded to support it. Unfortunately, his will not be included in the 2.11.0 release. At our next team meeting, I'll see if we can schedule it for the 2.12 release.

Grip-Jinsu commented 1 year ago

Hi @cppwfs

Is there a release schedule for version 2.12.0?