Open loremaps opened 3 years ago
Thanks for the report. We improved the error messages, they know mention environment variable names.
I could not reproduce your errors even on v0.28.8
, though. If I don't mention CUBESTORE_PORT
in the yaml file, the deployment works just fine. If I set it to invalid value, e.g. value: "'3306'"
it starts producing the error.
Hi @ilya-biryukov and thank you for looking into this. Did you create the service before applying the deployment?
without the service.yaml it works fine (which is truly weird).
I was able to reproduce it again for v0.28.13
in this katacoda environment
You're right, it does reproduce. I must have messed up the sequence.
No-one sets CUBESTORE_PORT
, so obviously we shouldn't even try to parse it. That's weird indeed.
Describe the bug A clear and concise description of what the bug is.
Cubestore panics if deployed on K8s without explicitly setting
CUBESTORE_PORT
to3306
. Please note that a service must also be deployed to surface the error (which is weird).To Reproduce Steps to reproduce the behavior:
kubectl apply -f service.yaml
kubectl apply -f deployment.yaml
If we add the environmental variable it works 🤯 :
Expected behavior A clear and concise description of what you expected to happen.
Since the CUBESTORE_PORT defaults to 3306 I would expect to not have to specify it as an env var.
Screenshots If applicable, add screenshots to help explain your problem.
Version: [e.g. 0.4.5]
Cubestore v0.28.8
Additional context Add any other context about the problem here.