Hello, I would like to use PyFlink jobs on Kubernetes in Job Cluster. I managed to do this in Cluster Session mode but deploying it as an independent Job Cluster for each job seems a better option for me.
If I understand the documentation well [1], [2] I should create a custom docker image which consists of my job which would be used in YAML files for jobmanger and taskmanager K8s deployments. However it only mentions JAR jobs. How can I do similar for a PyFlnik job? When I was deploying it in session cluster mode I also included a .jaf file to the Kafka connector which also should be somehow included. The only source I have found [3] has a bash script which creates images but I am not sure if it can be used for PyFlink jobs (especially when I want to apply UDF). [1] https://ci.apache.org/projects/flink/flink-docs-stable/ops/deployment/kubernetes.html#start-a-job-cluster [2] https://ci.apache.org/projects/flink/flink-docs-stable/ops/deployment/docker.html#jobmanager-additional-command-line-arguments [3] https://github.com/ronlut/flink-k8s/tree/master/build-image Kind regards, Wojtek -- UWAGA - Wiadomość oraz załączone do niej dokumenty zawierają informacje poufne, które mogą być również objęte tajemnicą handlową lub służbową. Jeśli nie jesteś zamierzonym odbiorcą wiadomości, proszę bezzwłocznie skontaktuj się z nadawcą oraz usuń wiadomość ze swojego systemu. Ujawnianie, kopiowanie, rozpowszechnianie czy publikacja tej wiadomości oraz zawartych w niej informacji jest zabronione. Alphamoon Sp. z o.o., ul. Pawła Włodkowica 21/3, 50-072 Wrocław, wpisana pod numerem KRS 0000621513 do Krajowego Rejestru Sądowego, prowadzonego przez Sąd Rejonowy dla Wrocławia-Fabrycznej VI Wydział Gospodarczy Krajowego Rejestru Sądowego, NIP: 8943079568, REGON 364634116.; Kapitał zakładowy: 5.000 PLN w pełni opłacony. NOTE - Message and the documents attached thereto contain confidential information, which may also be a trade secret or confidential. If you are not the intended recipient of the message, please contact the sender without delay and delete the message from your system. Disclosure, copying, dissemination or publication of this message and information contained therein is prohibited. Alphamoon Sp. z o.o. (Ltd.), ul. Pawła Włodkowica 21/3, 50-072 Wrocław, Poland; Registered under the KRS number 0000621513 to the National Court Register, kept by the District Court for Wrocław-Fabryczna VI Economic Department of the National Court Register, VAT-ID: PL8943079568, REGON 364634116; Share capital: PLN 5.000 fully paid-up.