添加 Doris Cluster 资源定义 报错

Viewed 33

kubectl apply -f doris.selectdb.com_dorisclusters.yaml
报错
The CustomResourceDefinition "dorisclusters.doris.selectdb.com" is invalid: metadata.annotations: Too long: must have at most 262144 bytes

1 Answers

声明 CRD 的时候,建议使用 create :
kubectl create -f crd_file.yaml

更新 CRD 的时候,建议使用 replace :
kubectl replace -f crd_file.yaml