Re: [ovs-discuss] OVSDB in Kubernetes: raft cluster breaks when pod IPs change

2020-07-09 Thread Matthew Booth
Superficially looking at the code, it seems that the raft code should allow me to specify a dns name instead of an IP address, i.e. 'tcp:ovsdb-0.ovsdb.svc:6644', which would be ideal. I thought I'd tried that and it didn't work, but it's possible that one of: * I did try this, but ovn-ctl barfed

Re: [ovs-discuss] OVSDB in Kubernetes: raft cluster breaks when pod IPs change

2020-07-09 Thread Matthew Booth
On Thu, 9 Jul 2020 at 11:53, Matthew Booth wrote: > > I'm running a 3-node ovsdb raft cluster in kubernetes without using > host networking, NET_ADMIN, or any special networking privileges. I'm > using a StatefulSet, so I have persistent storage and a persistent > network name. However, I don't

Re: [ovs-discuss] OVSDB in Kubernetes: raft cluster breaks when pod IPs change

2020-07-09 Thread Matthew Booth
On Thu, 9 Jul 2020 at 15:08, 刘梦馨 wrote: > > I came up with an idea, but have not tried. > > Periodically run a kubectl command inside the container to get the current IPs > of the statefulset pods and then reconcile the raft cluster with the current > IPs. > This work can be done by a readiness

Re: [ovs-discuss] OVSDB in Kubernetes: raft cluster breaks when pod IPs change

2020-07-09 Thread 刘梦馨
I came up with an idea, but have not tried. Periodically run a kubectl command inside the container to get the current IPs of the statefulset pods and then reconcile the raft cluster with the current IPs. This work can be done by a readiness probe script. On Thu, 9 Jul 2020 at 21:52, Matthew

Re: [ovs-discuss] OVSDB in Kubernetes: raft cluster breaks when pod IPs change

2020-07-09 Thread Matthew Booth
On Thu, 9 Jul 2020 at 13:27, Brendan Doyle wrote: > > Matt, > > I don't have any answers just questions, sorry. I'm interested because > I've just started > playing with this stuff too. > > > On 09/07/2020 11:53, Matthew Booth wrote: > > I'm running a 3-node ovsdb raft cluster in kubernetes

Re: [ovs-discuss] OVSDB in Kubernetes: raft cluster breaks when pod IPs change

2020-07-09 Thread Brendan Doyle
Matt, I don't have any answers just questions, sorry. I'm interested because I've just started playing with this stuff too. On 09/07/2020 11:53, Matthew Booth wrote: I'm running a 3-node ovsdb raft cluster in kubernetes without using host networking, NET_ADMIN, or any special networking

[ovs-discuss] OVSDB in Kubernetes: raft cluster breaks when pod IPs change

2020-07-09 Thread Matthew Booth
I'm running a 3-node ovsdb raft cluster in kubernetes without using host networking, NET_ADMIN, or any special networking privileges. I'm using a StatefulSet, so I have persistent storage and a persistent network name. However, I don't have a persistent IP. I have studied 2 existing implementation