seatunnel icon indicating copy to clipboard operation
seatunnel copied to clipboard

[Feature][Kubernetes] Run seatunnel in K8s with flink application mode and spark cluster mode

Open cswangzheng opened this issue 3 years ago • 1 comments

Search before asking

  • [X] I had searched in the feature and found no similar feature requirement.

Description

We have already use k8s for flink and spark. For flink we use application mod. For spark, we use cluster mode, which means the job manager deployment is created by flink client, and driver pod created by spark client. For example, we can use this command to start a seatunnel flink cluster: ./bin/flink run-application \ --target kubernetes-application \ -Dkubernetes.cluster-id=seatunnel-cluster \ -Dkubernetes.container.image=seatunnel-image-name \ local:///opt/flink/seatunnel.jar

The first thing is in the document part, told user we can support this kind of deployment.

The second thing, usually we build a unique image for flink or spark without config file in it, so use config as a file in pod is not a choose, if the content of config file can be passed by param should be better. So we want to add new param like config-content, which is base64 encode value of the content of config file.

Any thoughts for this?

Usage Scenario

Enhance seatunnel to support more kind of deployment mode.

Related issues

No response

Are you willing to submit a PR?

  • [X] Yes I am willing to submit a PR!

Code of Conduct

cswangzheng avatar Nov 20 '22 12:11 cswangzheng

+1 Good proposal.

legendtkl avatar Nov 22 '22 03:11 legendtkl

We can add job configmap to kubernetes deployment to support custom param, then mount configmap to some path to start the job.

Grypse avatar Dec 15 '22 10:12 Grypse

This issue has been automatically marked as stale because it has not had recent activity for 30 days. It will be closed in next 7 days if no further activity occurs.

github-actions[bot] avatar Jan 15 '23 00:01 github-actions[bot]

This issue has been closed because it has not received response for too long time. You could reopen it if you encountered similar problems in the future.

github-actions[bot] avatar Jan 28 '23 00:01 github-actions[bot]