-
Notifications
You must be signed in to change notification settings - Fork 73
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
Incorrect Pod Labels Applied by ArangoDB Kubernetes Operator #1847
Comments
Hello! The ID Pod is temporary and used only for image discovery. It will be removed right after version discovery. If it has been active for longer, please check the Operator logs—there might be a connection issue between the Operator and the ID pod. Then, the proper one with id=single will start. Best Regards, |
Hi, thanks for getting back to me. Here are my logs from my operator. I'm not sure that I see anything suspicious, but that's just because I don't see any errors.
If I create a new service spec to select for the role: id, then my endpoints work, and I'm able to load up the web GUI of the Arango pod. Are there any other logs or details that I could provide? |
Hello! It will work, but you will then be redirected to the ID Pod, which is just a dummy pod without any persistence. Can you please increase the log level on Operator to Debug? As ImageDiscovery is not reported at the Info level. Please add the argument '--log.level=debug' to the Operator args. I have reproduced this when the Operator could not connect the ID Pod. BR, |
Hello @Dibz15 ! Were you able to solve the issue with connectivity? BR, |
Hello @Dibz15 ! Please reopen the ticket if it still affects your deployment. Best Regards, |
Description:
When deploying an
ArangoDeployment
inSingle
mode, the created pods are labeled incorrectly. Despite explicitly specifying a pod label asrole: single
in theArangoDeployment
CRD, the operator consistently labels pods withrole: id
. This mismatch breaks service selectors and prevents the service from routing traffic correctly.Affected Component:
ArangoDB Kubernetes Operator
Operator Version: 1.2.44
Kubernetes Distribution and Version:
K3s v1.32.1
Expected Behavior:
When specifying labels explicitly in the
ArangoDeployment
, pods created by the operator should use those labels. For example:Pods should have labels:
Actual Behavior:
Pods are incorrectly labeled with:
Steps to Reproduce:
ArangoDeployment
with explicit labels as shown above.Workaround:
Manually creating a separate Kubernetes Service that matches the operator-generated pod labels:
Suggested Fix:
Ensure the operator correctly applies labels specified in the
ArangoDeployment
resource definition.Additional Information:
Client Version: v1.31.5+k3s1
Kustomize Version: v5.4.2
Server Version: v1.31.5+k3s1
The text was updated successfully, but these errors were encountered: