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

Unable to deploy ArangoDB cluster in Kubernetes with namespaced mode #755

Open
saipavan9 opened this issue Jul 14, 2021 · 2 comments
Open

Comments

@saipavan9
Copy link

saipavan9 commented Jul 14, 2021

Hi,
I am trying to deploying ArngoDB cluster in our own kubernetes cluster. I have successfully added the CRDs to our cluster.
Using the following command from helm 2.17 template I generated the YAML manifests with namespace scope of the deployment.

helm template kube-arangodb-1.1.10.tgz \                           
                       --name "deployment" \
                       --set "operator.image=arangodb/kube-arangodb:1.1.10" \
                       --set "operator.imagePullPolicy=Always" \
                       --set "operator.resources=null" \
                       --set "operator.scope=namespaced" \
         	       --namespace "arango"

When deployed everything is running but when I deploy the cluster and check the logs of it.I getting the following. When I reached the community for this issue. They said it would only try to list nodes if you are using cluster scope deployment but not with namespace scoped but yet this is the error I am getting. I can share the generated YAML manifests for verification.

2021-07-09T17:05:00Z ERR Unable to get nodes error="Unable to get nodes: nodes is forbidden: User \"system:serviceaccount:ac-refurb-ops-planning-kube:arango-deployment-operator\" cannot list resource \"nodes\" in API group \"\" at the cluster scope" component=deployment deployment=production-cluster operator-id=6kpnl
2021-07-09T17:05:00Z DBG ...deployment inspect started component=deployment deployment=production-cluster interval=250ms operator-id=6kpnl
2021-07-09T17:05:00Z DBG Inspect deployment... component=deployment deployment=production-cluster operator-id=6kpnl
2021-07-09T17:05:01Z ERR Unable to get nodes error="Unable to get nodes: nodes is forbidden: User \"system:serviceaccount:ac-refurb-ops-planning-kube:arango-deployment-operator\" cannot list resource \"nodes\" in API group \"\" at the cluster scope" component=deployment deployment=production-cluster operator-id=6kpnl
2021-07-09T17:05:01Z DBG ...inspected deployment component=deployment deployment=production-cluster interval=250ms operator-id=6kpnl
2021-07-09T17:05:01Z DBG Inspect deployment... component=deployment deployment=production-cluster operator-id=6kpnl
2021-07-09T17:05:01Z ERR Unable to get nodes error="Unable to get nodes: nodes is forbidden: User \"system:serviceaccount:ac-refurb-ops-planning-kube:arango-deployment-operator\" cannot list resource \"nodes\" in API group \"\" at the cluster scope" component=deployment deployment=production-cluster operator-id=6kpnl
@saipavan9 saipavan9 changed the title Unable to deploy ArangoDB cluster in Kubernetes Unable to deploy ArangoDB cluster in Kubernetes with namespaced mode Aug 2, 2021
@djmcgreal-cc
Copy link

Same, with version 1.2.1. Can someone please advise? Is there a version known to work?

@djmcgreal-cc
Copy link

It doesn't look like there's a path in the code that avoids inspectDeployment trying to access the nodes.

func (d *Deployment) inspectDeployment(lastInterval util.Interval) util.Interval {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants