Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Failed to deploy on Kubernetes #261

Closed
1 task done
simon824 opened this issue Aug 15, 2023 · 8 comments · Fixed by #263
Closed
1 task done

[Bug] Failed to deploy on Kubernetes #261

simon824 opened this issue Aug 15, 2023 · 8 comments · Fixed by #263
Assignees
Labels
bug Something isn't working

Comments

@simon824
Copy link
Member

Bug Type (问题类型)

exception / error (运行异常)

Before submit

Environment (环境信息)

  • Server Version: v1.0.x
  • Computer Version: v1.0.0
  • Scheduler: Kubernetes version v1.23.10
  • Data Size: xx vertices, xx edges

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"
@simon824 simon824 added the bug Something isn't working label Aug 15, 2023
@coderzc
Copy link
Member

coderzc commented Aug 15, 2023

@Radeity PTAL~

@Radeity
Copy link
Member

Radeity commented Aug 15, 2023

I'll follow up, you can assign me.

@simon824 simon824 assigned simon824 and Radeity and unassigned simon824 Aug 15, 2023
@Radeity
Copy link
Member

Radeity commented Aug 15, 2023

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?

  • Use description yaml under computer-k8s-operator/manifests, or you can generate by yourself.
    cd computer-k8s-operator/crd-generate
    make gen-all
  • Build and Push manager image:
    docker build -t hugegraph/hugegraph-computer-operator-manager:latest ./computer-k8s-operator/crd-generate
    docker push hugegraph/hugegraph-computer-operator-manager:latest
  • Build and Push controller image:
    mvn clean package -DskipTests
    docker build -t hugegraph/hugegraph-computer-operator:latest -f ./computer-k8s-operator/Dockerfile ./computer-k8s-operator
    docker push hugegraph/hugegraph-computer-operator:latest

@simon824
Copy link
Member Author

@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
Copy link
Member Author

simon824 commented Aug 15, 2023

@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
Copy link
Member

Radeity commented Aug 15, 2023

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
Copy link
Member Author

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

@coderzc
Copy link
Member

coderzc commented Aug 21, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants