8.2.9. 升级实体 Operator 以支持 v1beta2
先决条件
-
支持
v1beta2
API 版本的一个 Cluster Operator 已启动且正在运行。 -
配置了
Kafka.spec.entityOperator
,如 第 8.2.8 节 “升级主题 Operator 以支持 v1beta2” 所述。
流程
对部署中的每个 Kafka
自定义资源执行以下步骤。
更新编辑器中的
Kafka
自定义资源。oc edit kafka KAFKA-CLUSTER
-
将
关联性
从.spec.entityOperator.affinity
移到.spec.entityOperator.template.pod.affinity
。 -
将
容限
从.spec.entityOperator.tolerations
移到.spec.entityOperator.template.pod.tolerations
。 如果
类型: 外部
日志记录被配置为 in.spec.entityOperator.userOperator.logging
或.spec.entityOperator.topicOperator.logging
:替换包含日志配置的 ConfigMap
名称
:logging: type: external name: my-config-map
使用
valueFrom.configMapKeyRef
字段,并指定将日志记录存储在的 ConfigMap名称和
键
:logging: type: external valueFrom: configMapKeyRef: name: my-config-map key: log4j2.properties
- 保存文件,退出编辑器并等待更新的自定义资源得到协调。