shikanon / kubeflow-manifests

kubeflow国内一键安装文件
GNU General Public License v3.0
338 stars 117 forks source link

error: unable to recognize "017-pipeline-env-platform-agnostic-multi-user.yaml": no matches for kind "CompositeController" in version "metacontroller.k8s.io/v1alpha1" #31

Closed JvvYou closed 3 years ago

JvvYou commented 3 years ago

我用的是tke-1.18.4的k8s,是我用的版本太老了吗

shikanon commented 3 years ago

集群是支持k8s 1.18版本得,是不是之前你安装过这类型得CRD,你可以尝试先delete再apply:

kubectl delete -f manifest1.3/017-pipeline-env-platform-agnostic-multi-user.yaml
kubectl apply -f manifest1.3/017-pipeline-env-platform-agnostic-multi-user.yaml
JvvYou commented 3 years ago

我是新建的集群

jacklee999 commented 3 years ago

我是新建的集群

我也报同样的错,你有没有解决这个问题。

JvvYou commented 3 years ago

我是新建的集群

我也报同样的错,你有没有解决这个问题。

没有,暂时搁置了,过两天还得弄

shikanon commented 3 years ago

@jacklee999 @weiwei-9527 你可以输出compositecontrollers这个 crd 看看嘛?

$ kubectl get crd compositecontrollers.metacontroller.k8s.io -oyaml
JvvYou commented 3 years ago

@shikanon

apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  annotations:
    kubectl.kubernetes.io/last-applied-configuration: |
      {"apiVersion":"apiextensions.k8s.io/v1beta1","kind":"CustomResourceDefinition","metadata":{"annotations":{},"labels":{"application-crd-id":"kubeflow-pipelines","kustomize.component":"metacontroller"},"name":"compositecontrollers.metacontroller.k8s.io"},"spec":{"group":"metacontroller.k8s.io","names":{"kind":"CompositeController","plural":"compositecontrollers","shortNames":["cc","cctl"],"singular":"compositecontroller"},"scope":"Cluster","version":"v1alpha1"}}
  creationTimestamp: "2021-06-21T07:15:37Z"
  generation: 1
  labels:
    application-crd-id: kubeflow-pipelines
    kustomize.component: metacontroller
  managedFields:
  - apiVersion: apiextensions.k8s.io/v1
    fieldsType: FieldsV1
    fieldsV1:
      f:status:
        f:acceptedNames:
          f:kind: {}
          f:listKind: {}
          f:plural: {}
          f:shortNames: {}
          f:singular: {}
        f:conditions: {}
    manager: kube-apiserver
    operation: Update
    time: "2021-06-21T07:15:37Z"
  - apiVersion: apiextensions.k8s.io/v1beta1
    fieldsType: FieldsV1
    fieldsV1:
      f:metadata:
        f:annotations:
          .: {}
          f:kubectl.kubernetes.io/last-applied-configuration: {}
        f:labels:
          .: {}
          f:application-crd-id: {}
          f:kustomize.component: {}
      f:spec:
        f:conversion:
          .: {}
          f:strategy: {}
        f:group: {}
        f:names:
          f:kind: {}
          f:listKind: {}
          f:plural: {}
          f:shortNames: {}
          f:singular: {}
        f:preserveUnknownFields: {}
        f:scope: {}
        f:version: {}
        f:versions: {}
      f:status:
        f:storedVersions: {}
    manager: kubectl
    operation: Update
    time: "2021-06-21T07:15:37Z"
  name: compositecontrollers.metacontroller.k8s.io
  resourceVersion: "10636"
  selfLink: /apis/apiextensions.k8s.io/v1/customresourcedefinitions/compositecontrollers.metacontroller.k8s.io
  uid: 1f4cd2a0-9b52-4080-a304-8b14f8310646
spec:
  conversion:
    strategy: None
  group: metacontroller.k8s.io
  names:
    kind: CompositeController
    listKind: CompositeControllerList
    plural: compositecontrollers
    shortNames:
    - cc
    - cctl
    singular: compositecontroller
  preserveUnknownFields: true
  scope: Cluster
  versions:
  - name: v1alpha1
    served: true
    storage: true
status:
  acceptedNames:
    kind: CompositeController
    listKind: CompositeControllerList
    plural: compositecontrollers
    shortNames:
    - cc
    - cctl
    singular: compositecontroller
  conditions:
  - lastTransitionTime: "2021-06-21T07:15:37Z"
    message: no conflicts found
    reason: NoConflicts
    status: "True"
    type: NamesAccepted
  - lastTransitionTime: "2021-06-21T07:15:37Z"
    message: the initial names have been accepted
    reason: InitialNamesAccepted
    status: "True"
    type: Established
  - lastTransitionTime: "2021-06-21T07:15:37Z"
    message: protected groups must have approval annotation "api-approved.kubernetes.io",
      see https://github.com/kubernetes/enhancements/pull/1111
    reason: MissingAnnotation
    status: "False"
    type: KubernetesAPIApprovalPolicyConformant
  storedVersions:
  - v1alpha1
JvvYou commented 3 years ago

@shikanon 当我出现上面的那个报错后,我按照你说的,重新跑了一下就没有no matches 这个问题了

kubectl delete -f manifest1.3/017-pipeline-env-platform-agnostic-multi-user.yaml
kubectl apply -f manifest1.3/017-pipeline-env-platform-agnostic-multi-user.yaml

但是我再delete的时候又出现了,似乎apply 的时候没有报出问题,但是资源并没有成功创建

Error from server (NotFound): error when deleting "017-pipeline-env-platform-agnostic-multi-user.yaml": the server could not find the requested resource (delete compositecontrollers.metacontroller.k8s.io kubeflow-pipelines-profile-controller)
JvvYou commented 3 years ago

@jacklee999 我似乎装好了,但是我不能确定上面那个问题会不会有啥影响,就是我删除之后出现的报错 image

shikanon commented 3 years ago

@weiwei-9527 看你输出这个CRD应该是安装成功了,你 get CompositeController 看看:

$ kubectl get CompositeController -A
NAME                                    AGE
kubeflow-pipelines-profile-controller   41d

看是否存在kubeflow-pipelines-profile-controller这个对象。

JvvYou commented 3 years ago

@shikanon

[root@10-6-4-74 kubeflow-manifests]# kubectl get CompositeController -A
NAME                                    AGE
kubeflow-pipelines-profile-controller   24m
shikanon commented 3 years ago

@weiwei-9527 这样看你这个没有问题啊,这个deployment kubeflow-pipelines-profile-controller 起来了嘛:

$ kubectl get po -nkubeflow | grep pipelines-profile
kubeflow-pipelines-profile-controller-5698bf57cf-btpn5      1/1     Running   0          39d
kubeflow-pipelines-profile-controller-5698bf57cf-vs8rh      1/1     Running   0          34d
JvvYou commented 3 years ago

@shikanon 也起来了

[root@10-6-4-74 kubeflow-manifests]# kubectl get po -nkubeflow | grep pipelines-profile
kubeflow-pipelines-profile-controller-85d6ff7d6c-fq5cd       1/1     Running   0          22m
shikanon commented 3 years ago

@weiwei-9527 那你这个 profile controller 应该是运行成功了,现在系统还存在什么问题

JvvYou commented 3 years ago

@shikanon 暂时看不出什么问题,得使用之后才能知道,感谢帮助

Corezcy commented 3 years ago

集群是支持k8s 1.18版本得,是不是之前你安装过这类型得CRD,你可以尝试先delete再apply:

kubectl delete -f manifest1.3/017-pipeline-env-platform-agnostic-multi-user.yaml
kubectl apply -f manifest1.3/017-pipeline-env-platform-agnostic-multi-user.yaml

请问1.20的版本支持吗?

shikanon commented 3 years ago

@Corezcy 最新版本已经支持k8s 1.20版本了

lesserror commented 2 years ago

@jacklee999 @weiwei-9527 你可以输出compositecontrollers这个 crd 看看嘛?

$ kubectl get crd compositecontrollers.metacontroller.k8s.io -oyaml

@shikanon 您好,我查询不到这个crd是怎么回事呢?另外说明一下,我是在用kubeadm搭建的k8s集群上进行部署的,麻烦大家指教一下


root@master:/home/hqc/Kubeflow/Kubeflow1.3# kubectl get CompositeController -A
error: the server doesn't have a resource type "CompositeController"

root@master:/home/hqc/Kubeflow/Kubeflow1.3# kubectl get crd compositecontrollers.metacontroller.k8s.io -oyaml Error from server (NotFound): customresourcedefinitions.apiextensions.k8s.io "compositecontrollers.metacontroller.k8s.io" not found

shikanon commented 2 years ago

@jacklee999 @weiwei-9527 你可以输出compositecontrollers这个 crd 看看嘛?

$ kubectl get crd compositecontrollers.metacontroller.k8s.io -oyaml

@shikanon 您好,我查询不到这个crd是怎么回事呢?另外说明一下,我是在用kubeadm搭建的k8s集群上进行部署的,麻烦大家指教一下

root@master:/home/hqc/Kubeflow/Kubeflow1.3# kubectl get CompositeController -A
    error: the server doesn't have a resource type "CompositeController"

root@master:/home/hqc/Kubeflow/Kubeflow1.3# kubectl get crd compositecontrollers.metacontroller.k8s.io -oyaml
    Error from server (NotFound): customresourcedefinitions.apiextensions.k8s.io "compositecontrollers.metacontroller.k8s.io" not found

说明没安装成功,crd是资源最基础的文件,你可以卸载重新安装

lesserror commented 2 years ago

@jacklee999 @weiwei-9527 你可以输出compositecontrollers这个 crd 看看嘛?

$ kubectl get crd compositecontrollers.metacontroller.k8s.io -oyaml

@shikanon 您好,我查询不到这个crd是怎么回事呢?另外说明一下,我是在用kubeadm搭建的k8s集群上进行部署的,麻烦大家指教一下

root@master:/home/hqc/Kubeflow/Kubeflow1.3# kubectl get CompositeController -A
    error: the server doesn't have a resource type "CompositeController"

root@master:/home/hqc/Kubeflow/Kubeflow1.3# kubectl get crd compositecontrollers.metacontroller.k8s.io -oyaml
    Error from server (NotFound): customresourcedefinitions.apiextensions.k8s.io "compositecontrollers.metacontroller.k8s.io" not found

说明没安装成功,crd是资源最基础的文件,你可以卸载重新安装

可是我删除又重装,017这个yaml文件一直报以下错误呢: error: unable to recognize "manifest1.3/017-pipeline-env-platform-agnostic-multi-user.yaml": no matches for kind "CompositeController" in version "metacontroller.k8s.io/v1alpha1",没法正常安装上。

zengqingfu1442 commented 1 year ago

@jacklee999 @weiwei-9527 你可以输出compositecontrollers这个 crd 看看嘛?

$ kubectl get crd compositecontrollers.metacontroller.k8s.io -oyaml

@shikanon 您好,我查询不到这个crd是怎么回事呢?另外说明一下,我是在用kubeadm搭建的k8s集群上进行部署的,麻烦大家指教一下

root@master:/home/hqc/Kubeflow/Kubeflow1.3# kubectl get CompositeController -A
    error: the server doesn't have a resource type "CompositeController"

root@master:/home/hqc/Kubeflow/Kubeflow1.3# kubectl get crd compositecontrollers.metacontroller.k8s.io -oyaml
    Error from server (NotFound): customresourcedefinitions.apiextensions.k8s.io "compositecontrollers.metacontroller.k8s.io" not found

我也遇到同样的问题,请问您怎么解决的?

zengqingfu1442 commented 1 year ago

试了下,k8s 1.16 --> 1.22 之间的没有这个问题。