[ 
https://issues.apache.org/jira/browse/FLINK-28725?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17572257#comment-17572257
 ] 

Biao Geng commented on FLINK-28725:
-----------------------------------

Hi [~lizu18xz], the field "replicas" of task manager is introduced into CRD 
since 1.1.0. If your kube cluster has already installed earlier version of 
flink-kubernetes-operator, you may have to remove the outdated CRD manually and 
reinstall the newest operator. The detail of upgrade process is 
[here|https://nightlies.apache.org/flink/flink-kubernetes-operator-docs-release-1.1/docs/operations/upgrade/]

Besides, in most cases, users do not need to set replica of task managers 
manually as it can be calculated from configs(i.e. parallelism / taskSlots).

> flink-kubernetes-operator taskManager:     replicas: 2 error
> ------------------------------------------------------------
>
>                 Key: FLINK-28725
>                 URL: https://issues.apache.org/jira/browse/FLINK-28725
>             Project: Flink
>          Issue Type: Bug
>            Reporter: lizu18xz
>            Priority: Major
>
> version:v1.1.0
>  
> taskManager:
>     replicas: 2
>     resource:
>       memory: "1024m"
>       cpu: 1
>  
> error validating data: ValidationError(FlinkDeployment.spec.taskManager): 
> unknown field "replicas" in 
> org.apache.flink.v1beta1.FlinkDeployment.spec.taskManager; if you choose to 
> ignore these errors, turn validation off with --validate=false



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to