apache / incubator-hugegraph-computer

HugeGraph Computer - A distributed graph processing system for hugegraph (OLAP)
https://hugegraph.apache.org/docs/quickstart/hugegraph-computer/
Apache License 2.0
42 stars 41 forks source link

[Bug] Failed to deploy on Kubernetes #261

Closed simon824 closed 1 year ago

simon824 commented 1 year ago

Bug Type (问题类型)

exception / error (运行异常)

Before submit

Environment (环境信息)

Expected & Actual behavior (期望与实际表现)

bash-5.1# kubectl apply -f https://raw.githubusercontent.com/apache/hugegraph-computer/master/computer-k8s-operator/manifest/hugegraph-computer-crd.v1.yaml
bash-5.1# kubectl apply -f https://raw.githubusercontent.com/apache/hugegraph-computer/master/computer-k8s-operator/manifest/hugegraph-computer-operator.yaml
namespace/hugegraph-computer-operator-system unchanged
customresourcedefinition.apiextensions.k8s.io/hugegraphcomputerjobs.operator.hugegraph.apache.org configured
serviceaccount/hugegraph-computer-operator-controller-manager unchanged
role.rbac.authorization.k8s.io/hugegraph-computer-operator-leader-election-role unchanged
clusterrole.rbac.authorization.k8s.io/hugegraph-computer-operator-manager-role configured
clusterrole.rbac.authorization.k8s.io/hugegraph-computer-operator-metrics-reader unchanged
clusterrole.rbac.authorization.k8s.io/hugegraph-computer-operator-proxy-role unchanged
rolebinding.rbac.authorization.k8s.io/hugegraph-computer-operator-leader-election-rolebinding unchanged
clusterrolebinding.rbac.authorization.k8s.io/hugegraph-computer-operator-manager-rolebinding unchanged
clusterrolebinding.rbac.authorization.k8s.io/hugegraph-computer-operator-proxy-rolebinding unchanged
configmap/hugegraph-computer-operator-manager-config unchanged
service/hugegraph-computer-operator-controller-manager-metrics-service unchanged
service/hugegraph-computer-operator-etcd unchanged
service/hugegraph-computer-operator-webhook-service unchanged
deployment.apps/hugegraph-computer-operator-controller-manager configured
deployment.apps/hugegraph-computer-operator-etcd unchanged
mutatingwebhookconfiguration.admissionregistration.k8s.io/hugegraph-computer-operator-mutating-webhook-configuration configured
validatingwebhookconfiguration.admissionregistration.k8s.io/hugegraph-computer-operator-validating-webhook-configuration configured
unable to recognize "https://raw.githubusercontent.com/apache/hugegraph-computer/master/computer-k8s-operator/manifest/hugegraph-computer-operator.yaml": no matches for kind "CustomResourceDefinition" in version "apiextensions.k8s.io/v1beta1"
unable to recognize "https://raw.githubusercontent.com/apache/hugegraph-computer/master/computer-k8s-operator/manifest/hugegraph-computer-operator.yaml": no matches for kind "Certificate" in version "cert-manager.io/v1"
unable to recognize "https://raw.githubusercontent.com/apache/hugegraph-computer/master/computer-k8s-operator/manifest/hugegraph-computer-operator.yaml": no matches for kind "Issuer" in version "cert-manager.io/v1"
coderzc commented 1 year ago

@Radeity PTAL~

Radeity commented 1 year ago

I'll follow up, you can assign me.

Radeity commented 1 year ago

Hi @simon824 , I just realize that we have not uploaded the latest image, would you like to follow these steps and test locally to make sure if there's other problems with codes or environment?

simon824 commented 1 year ago

@Radeity description yaml is from https://github.com/apache/incubator-hugegraph-computer/blob/master/computer-k8s-operator/manifest/hugegraph-computer-crd.v1.yaml

bash-5.1# kubectl apply -f hugegraph-computer-crd.v1.yaml
error: error validating "hugegraph-computer-crd.v1.yaml": error validating data: [apiVersion not set, kind not set]; if you choose to ignore these errors, turn validation off with --validate=false
simon824 commented 1 year ago

@Radeity refer to https://kubernetes.io/zh-cn/docs/reference/using-api/deprecation-guide/#customresourcedefinition-v122 seems this description yaml is not compatible with Kubernetes >= 1.22 ?

Radeity commented 1 year ago

Sorry, I don't the have environment of Kubernetes 1.23+... but it seems that you don't use v1beta version's description yaml, and in your error log, it points out that apiVersion and kind not set, but we have already declared these two attributes in first two line. Would you like to double check your operation?

simon824 commented 1 year ago

Image hugegraph/hugegraph-computer-operator-manager:latest seems not to exist, @coderzc ,can you help to push it to dockerhub when free, thx.

coderzc commented 1 year ago

Image hugegraph/hugegraph-computer-operator-manager:latest seems not to exist, @coderzc ,can you help to push it to dockerhub when free, thx.

I'll push image to docker hub.