1

我有以下 .yaml 文件:

apiVersion: kibana.k8s.elastic.co/v1
kind: Kibana
metadata:
  name: quickstart
spec:
  version: 8.0.0
  count: 1
  elasticsearchRef:
    name: quickstart 

当我尝试使用 kubectl create -f 创建实例时,出现错误

error: unable to recognize: no matches for kind "Kibana" in version "kibana.k8s.elastic.co/v1"
4

1 回答 1

1

你是怎么安装的?看起来您缺少CRD

尝试应用一次:

kubectl apply -f https://download.elastic.co/downloads/eck/1.0.0/all-in-one.yaml

您可以查看可用的 API 资源列表:

kubectl api-resources

于 2022-02-15T12:36:56.100 回答