gpt4 book ai didi

docker - kubernetes cassandra运算符错误

转载 作者:行者123 更新时间:2023-12-02 12:21:31 25 4
gpt4 key购买 nike

我为kubernetes创建cassandra运算符时遇到错误。

# kubectl create -f example-cassandra-cluster.yaml 
error: unable to recognize "example-cassandra-cluster.yaml": no matches for cassandra.database.instaclustr.com/, Kind=CassandraCluster
example-cassandra-cluster.yaml是:
apiVersion: "cassandra.database.instaclustr.com/v1beta2"
kind: "CassandraCluster"
metadata:
name: "example-cassandra-cluster"
spec:
size: 3
version: "3.11"
pod:
resources:
limits:
memory: "512Mi"

有人遇到过此错误吗?

最佳答案


apiVersion: "cassandra.database.instaclustr.com/v1beta2"

表示CassandraCluster类型
kind: "CassandraCluster"

取决于自定义资源定义。

在实例化其对象之前,必须在集群中创建该CRD。

https://kubernetes.io/docs/tasks/access-kubernetes-api/extend-api-custom-resource-definitions/#create-a-customresourcedefinition

关于docker - kubernetes cassandra运算符错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49043062/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com