<p>I have got a single jar that uses main function to initiate 3 different jobs (topologies) and I want to deploy it in a kubernetes cluster with flink kubernetes operator (version 1.4) in application mode. I would expect that all 3 jobs to be initiated as I was able to do it using native kubernetes deployment mode (<a href="https://nightlies.apache.org/flink/flink-docs-master/docs/deployment/resource-providers/native_kubernetes/#deployment-modes" rel="nofollow noreferrer">link</a>).</p>
<p>Instead only the first job is scheduled from my application, and other jobs are ignored.
The simplified manifest used for FlinkDeployment resource is the following</p>
<pre class="lang-yaml prettyprint-override"><code>apiVersion: flink.apache.org/v1beta1
kind: FlinkDeployment
metadata:
  name: my-flink-app
spec:
  image: my-custom-flink-image-with-app
  flinkVersion: v1_16
  flinkConfiguration:
    taskmanager.numberOfTaskSlots: &quot;4&quot;
  serviceAccount: flink
  jobManager:
    resource:
      memory: &quot;1024m&quot;
      cpu: 1
  taskManager:
    resource:
      memory: &quot;1024m&quot;
      cpu: 1
    podTemplate:
      apiVersion: v1
      kind: Pod
      metadata:
        name: task-manager-pod-template
      spec:
        initContainers:
          - name: busybox
            image: busybox:1.35.0
            command: [ 'sh','-c','echo hello from task manager' ]  
  podTemplate:
    spec:
      containers:
        - name: flink-main-container    
          env:
          - name: FLINK_PARALLELISM  
            value: &quot;2&quot; 
  job:
    jarURI: local:////opt/flink/usrlib/my-app.jar
    parallelism: 2
</code></pre>
<p>Is this behavior the expected one ? Am I missing something, shouldn't be possible to start a Flink application with multiple jobs using flink-kubernetes-operator ?</p>

ypanag
<p>The Flink Kubernetes Operator expects that each <code>FlinkDeployment</code> is a separate Flink application and can be operated (upgraded, savepointed etc.) independently. Please refactor your application into 3 <code>FlinkDeployments</code> if you would like to use the Kubernetes Operator.</p>
