-
Notifications
You must be signed in to change notification settings - Fork 41
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
Using Statefulset and PVC causing problems when or if Pod restarts #7
Comments
@Laurafautley or @msanilkumar2020 can provide more guidance on this. |
Hi @ayush268 thank you for posting your question. I was going to publish blog announcing availability of developer preview of Couchbase running on Kubernetes using statefulsets. |
Here is the link to blog - https://blog.couchbase.com/couchbase-openshift-enterprise-kubernetes-developer-preview-available/ |
same here. |
Hi @mrjumpy @ayush268 @arun-gupta @anilkumar29 , Please let me know if you resolved this problem. |
I just change to use VMs instead of POD |
Did anyone manage to work around this issue? |
Hi @msavlani, @mrjumpy, @oliver-whiteman, |
Wow, completely missed that @anilkumar29 |
@anilkumar29 - where can i find the source code for this operator? Also, I couldn't see a way to customize the storage being used, is it under plans? |
bump. |
Hi you file a question for help on forums.couchbase.com or if you'd like to
email me directly I can put you directly in contact with he developer. I
can be contacted at laura@ couchbase.com
…On 10 Mar 2018 14:43, "Adarsh J" ***@***.***> wrote:
bump.
If not source code, where can I file issues with couchbase operator?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#7 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ALVdddHReAcY9gMXLqJhXeSL7s452Shaks5tdCzTgaJpZM4OfznK>
.
|
I have similar problem. After pod restart it has new IP and Couchbase service won't start because It has persistent volumes data. Can I fix this by some script or overwriting some values with startup script? |
I think the issue here is the use of IP address as the node name. When a k8s pod is restarted, it would be automatically assigned a new IP which is different to the one saved in Couchbase. This would make Couchbase fail to find its master and nodes after reboot. I fixed the issue by using the full hostname instead, e.g from It would give something like couchbase-N.couchbase.default.svc.cluster.local where N is an index starting from 0 |
Currently I am using the setup provided in this repo for statefulset with a few exceptions -
The issue I am facing is that when or if Pod - "couchbase-0" restarts, its ip will change due to flannel and because of that I am not able to connect to the UI by port-forwarding and the error log says
[ns_server:error,2017-07-20T19:23:34.313Z,nonode@nohost:dist_manager<0.142.0>:dist_manager:init:178]Configured address '10.2.17.3' seems to be invalid. Will refuse to start for safety reasons.
Since we are using persistant volumes the ip must be stored in them and if I go in the pod and manually change the "/opt/couchbase/var/lib/couchbase/ip" file, it kind of resets the settings I had done to the couchbase server and I have to set it up all again.
Also it should detect the two servers i.e. "couchbase-0 and couchbase-1" by itself but it does not do that, I have to manually add the servers and rebalance them.
I have also opened all the ports required - 8091,8092,11207,11209-11211, 11214,11215,18091,18092,21100-21299 but still the problem persists.
Could you tell me what could I do to fix this issue?
The text was updated successfully, but these errors were encountered: