Hi everyone, I am using Flink 1.20 and K8s operato...
# troubleshooting
a
Hi everyone, I am using Flink 1.20 and K8s operator 1.11. The functionality I am trying to achieve is to set requests and limits for my JobManager and TaskManager. Can someone share a sample FlinkDeployment with request and limit configuration? Is the template below correct for setting requests and limits? My main doubt is whether the resource block and the request block under the podTemplate need to be the same or not.
Copy code
jobManager:
  replicas: {{ .Values.jobReplicas }}
  resource:                                # does this sections needs to be matching with below request under podTemplate
    cpu: 1
    memory: 4G
  podTemplate:
    spec:
      containers:
        - name: flink-main-container
          resources:
            requests:
              cpu: 1
              memory: 4G
            limits:
              cpu: 2
              memory: 4G
taskManager:
  resource:
    cpu: 1
    memory: 4G
  podTemplate:
    spec:
      containers:
        - name: flink-main-container
          resources:
            requests:
              cpu: 1
              memory: 4G
            limits:
              cpu: 2
              memory: 4G
p
IIRC Flink works with request only. But there are the factor configuration and they act as a multiplier on top of the request values. See here