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

hotelReservation issue - not all pods are running #328

Open
stekas7 opened this issue Apr 1, 2024 · 10 comments
Open

hotelReservation issue - not all pods are running #328

stekas7 opened this issue Apr 1, 2024 · 10 comments

Comments

@stekas7
Copy link

stekas7 commented Apr 1, 2024

Dear all,

I am trying to deploy and do some workload tests on the hotelReservation app on my Kubernetes cluster. I followed the instructions in GitHub, but even after some time not all pods are running. I am attaching a screenshot from the logs of the non-running pods. It seems like some file is missing. I have not edited any file I just downloaded the files and applied them with Kubectl apply -Rf.

Screenshot 2024-03-28 at 17 48 26

Kind Regards

@Feelas
Copy link

Feelas commented Apr 4, 2024

Not a maintainer, but it reminds me of this comment #320 (comment).

@stekas7
Copy link
Author

stekas7 commented Apr 7, 2024

Not sure about it. I will give it a try to modify the compose file.

@Feelas
Copy link

Feelas commented Apr 8, 2024

@stekas7 the point is that copying/mounting the config.json should sort out the "Got error while reading config" message and also at the same time "mongodb://" points to an incorrect URI which would be read from config.json if it wasn't missing.

@stekas7
Copy link
Author

stekas7 commented Apr 8, 2024

I tried it today, adding:
configs: server_config: file: ./config.json name: config.json
to the docker-compose file and then running Kubectl apply -Rf, but I still get the exact same error

@Feelas
Copy link

Feelas commented Apr 8, 2024

The link I mentioned specifically modifying the Dockerfile to inject config.json inside.

I think that the docker-compose file doesn't get applied onto the K8s cluster, you would have to inject (e.g. thru a configMap volume + volumeMounts) the config.json into proper place.

Looks like that would be the hotelReservation/kubernetes/reccomend/recommendation-deployment.yaml which you have to expand.

@stekas7
Copy link
Author

stekas7 commented Apr 22, 2024

Anyone from the DeathStarBench team that could fix this issue?

@stekas7
Copy link
Author

stekas7 commented May 15, 2024

Screenshot 2024-05-15 at 12 59 37 So, I am trying to mount the config.json using a configmap I created named hotelrescm. Problem is, I cannot find the correct mount path for the volume mount. Anyone can help? @Feelas maybe you have already solved this?

@Feelas
Copy link

Feelas commented May 15, 2024

@stekas7 try to mount it like here.

So that would be

        - mountPath: config.json
          subPath: config.json
          name: config-json

I guess it should be put exactly in same catalog as "./recommendation" from connect.

@stekas7
Copy link
Author

stekas7 commented May 15, 2024

@Feelas Thank you for the response, what do you mean with "I guess it should be put exactly in same catalog as "./recommendation" from connect." Do you mean something in the recommendation-deployment.yaml? I am just editing this file and then applying.

@Feelas
Copy link

Feelas commented May 16, 2024

@stekas7 I meant that probably config.json goes in the same directory as "recommendation" binary (which "command" field in deployment referes to).

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