-
Notifications
You must be signed in to change notification settings - Fork 502
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
Athens fails to start when deployed on Kubernetes using custom specifications #1038
Comments
@amarruedo what is the failure message that you get? Athens shouldn't know anything about a K8s Service object. |
|
looks like the colon at the end of the address is incorrect, is that somehow K8s's fault? |
I would say that this could be more an issue on Buffalo side. I've found this and I'm not sure if this means that there is some sort of problem with buffalo based apps (which I beleive is Athen's case) on Kubernetes. I'll research it a little bit more on monday. |
@amarruedo the next Athens release won't have Buffalo as its router, so it might be great to retest with the upcoming release and see if that solves our problem. Nonetheless, I think this warrants a patch fix on v0.2.0 if we can get to the bottom of it. Thanks |
Hi again! Today I had some time to do some more research and finally found out whats happening. It has nothing to do with From Kubernetes documentation:
Since I named my service
The thing is that Changing service name to
then we've got following injected variables:
and then everything works as expected, since there is no There is a question in stackoverflow regarding this issue, and apparently the only thing that we can do is to be aware of this collision possibility. |
Commenting from the future to thank you for saving me a lot of time debugging this. Another fix, if (like me) you want to keep the name env:
- name: ATHENS_PORT
value: "3000" |
Describe the bug
Trying to deploy Athens on a Kubernetes cluster using an Athens deployment and service specification I've experienced the following issue:
If I first deploy the service and then the deployment, Athens fails to start. If I change the order and deploy first the deployment and then the service, then it works.
Error Message
To Reproduce
athens-service.yaml:
athens-deployment.yaml:
First, apply service specification, then, deployment specification (order matters)
Expected behavior
It should work no matter the order you apply specifications.
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: