我在尝试通过Strimzi操作符安装Kafka集群时遇到以下错误
重现步骤:
1)安装olm:
kubectl create -f https://raw.githubusercontent.com/operator-framework/operator-lifecycle-manager/master/deploy/upstream/quickstart/olm.yaml2)安装strimzi-cluster-operator:
kubectl create -f https://operatorhub.io/install/strimzi-cluster-operator.v0.11.1.yaml3)安装kafka-cluster (参见https://operatorhub.io/operator/strimzi-cluster-operator.v0.11.1#,在“自定义资源定义”下查找Kafka)
kubectl create -f kafka-cluster.yaml,其中kafka-cluster.yaml的内容为:
apiVersion: kafka.strimzi.io/v1alpha1
kind: Kafka
metadata:
name: my-cluster
spec:
kafka:
version: 2.1.0
replicas: 3
listeners:
plain: {}
tls: {}
config:
offsets.topic.replication.factor: 3
transaction.state.log.replication.factor: 3
transaction.state.log.min.isr: 2
storage:
type: ephemeral
zookeeper:
replicas: 3
storage:
type: ephemeral
entityOperator:
topicOperator: {}
userOperator: {}步骤3失败,出现以下错误:
错误:无法识别"kafka-cluster.yaml":"kafka.strimzi.io/v1alpha1“版本中的种类"Kafka”没有匹配项。
有什么建议吗?谢谢。
发布于 2019-03-21 11:01:24
看起来在运行第三个命令之前,我只需要等待几分钟,即使在发出第二个命令之后,所有相关的pod都处于运行状态。(我假设下载kafka镜像需要一些时间。)它工作得很好。
NAME READY STATUS RESTARTS AGE
my-cluster-entity-operator-66fbf6bc5d-wqc96 1/3 Running 0 119s
my-cluster-kafka-0 2/2 Running 0 2m46s
my-cluster-kafka-1 2/2 Running 0 2m46s
my-cluster-kafka-2 2/2 Running 0 2m46s
my-cluster-zookeeper-0 2/2 Running 0 3m31s
my-cluster-zookeeper-1 2/2 Running 0 3m31s
my-cluster-zookeeper-2 2/2 Running 0 3m31shttps://stackoverflow.com/questions/55273104
复制相似问题