Hello, I am currently using flink 1.13.6 and deplo...
# troubleshooting
s
Hello, I am currently using flink 1.13.6 and deploying jobs in application mode using flink kubernetes operator (default native mode). I would like assign different requests and limits for the TM pods . How can I specify this in FlinkDeployment. Seems
kubernetes.jobmanager.cpu.limit-factor
was added in flink >= 1.15.X. I am using 1.13.6 currently and tried following options. But din work.
Copy code
taskManager:
    resource:
      memory: "2000m"
      cpu: "1"
    podTemplate:
      apiVersion: v1
      kind: Pod
      metadata:
        name: task-manager-pod-template
      spec:
        containers:
        - name: flink-main-container
          resources:
            requests:
              memory: "2000m"
              cpu: "1"
            limits:
              memory: "3000m"
              cpu: "2"
Section resource overrides the resources section inside containers section. Tried removing resources all together and that was setting CPU requests and limits equal to number of task slots . Its completely ignoring the resources section inside containers section
Copy code
taskManager:
    podTemplate:
      apiVersion: v1
      kind: Pod
      metadata:
        name: task-manager-pod-template
      spec:
        containers:
        - name: flink-main-container
          resources:
            requests:
              memory: "2000m"
              cpu: "1"
            limits:
              memory: "3000m"
              cpu: "2"
Any options in flink 1.13.6 or does flink-kubernetes-operator provide any such options (edited)
b
Why not put same resources in tm.podTemplate.containers.resources and tm.resources?
g
sounds like upgrading to 1.15/1.16 will solve your problem 🙂
s
Thats the final option for me.
tm.podTemplate.containers.resources and tm.resources (2nd option I tried )=> this doesnt work as this configuration gets overridden
👍 1