0

我的 calico 配置为与 etcd 关联,所以我创建了一个配置文件来配置 etcd 的 ca 证书、证书和密钥,但是当我应用配置文件时,注意到我没有这种。这个文件是我从官网复制的模板。我应该怎么办?

root@qhwk-k8s-master-0:/work/k8s/calico-v3.16.3# kubectl apply -f calico-apiConfig.yaml 
error: unable to recognize "calico-apiConfig.yaml": no matches for kind "CalicoAPIConfig" in version "projectcalico.org/v3"
root@qhwk-k8s-master-0:/work/k8s/calico-v3.16.3# cat calico-apiConfig.yaml 
apiVersion: projectcalico.org/v3
kind: CalicoAPIConfig
metadata:
spec:
  etcdEndpoints: https://10.58.221.192:2379,https://10.58.221.52:2379,https://10.58.221.153:2379
  etcdKeyFile: /etc/kubernetes/pki/etcd/server.key
  etcdCertFile: /etc/kubernetes/pki/etcd/server.crt
  etcdCACertFile: /etc/kubernetes/pki/etcd/ca.crt
root@qhwk-k8s-master-0:/work/k8s/calico-v3.16.3# 
4

0 回答 0