On 06/07/2020 21:13, aginwala wrote:
Hi:

Adding the ML too. Folks from k8s can comment on the same to see if ovn-k8s repo needs an update in the documentation for you to get the setup working when using their specs as is without any code changes in addition to using your own custom ovn images, etc. I am getting mail failure when adding ovn-k8s google group as I think I don't have permission to post there. Also the yaml specs and raft scripts have good comments which can give you a clear idea too.

I'm not sure they do, seems like a README would good good, what I'm inferring is that you can use different combinations of
yamls to achieve different things.

1) Configure an OVN CNI
create -f ovn-setup.yaml
create -f ovnkube-db.yaml
create -f ovnkube-master.yaml
create -f ovnkube-node.yaml

2) create and start an k8 OVN raft clustered OVN central
create -f ovn-setup.yaml
create -f ovnkube-db-raft.yaml


I'm not sure about the steps for 2, and weather or not other yamls also need to be run ovnkube-db.yaml? ovnkube-node.yaml?



Also cc'd Girish who can comment further.


Also things like volumes(PV) for ovn central dedicated nodes, monitoring, backing up ovn db,  etc. needs to be considered so that when the pod is restarted or ovn version is upgraded, cluster settings are retained and cluster health stats are also taken into consideration.

Err, so the yamls don't create these?? so if a POD is restarted the NB/SB databases are lost?? really?? I would have thought if a raft clustered was created and a pod in that clustered is restarted the cluster
would sync from the other pods? this is worrying.





I got the design aspect of it sorted a week ago and had internal review too cc Han as we do not use ovn as CNI too including some pending containerizing items for ovn global dbs and ovn interconnect controller to use for ovn interconnect. However, it's pending testing in k8s with all the specs/tweaks due to some other priorities. As the approach taken by ovn-k8s is succinct and already tested, it shouldn't be a bottleneck.

I'm not sure I follow, are you saying this is all work in progress?

I agree that overall documentation needs to be consolidated on both ovn-k8s side or ovn repo.

On Mon, Jul 6, 2020 at 9:49 AM Brendan Doyle <[email protected] <mailto:[email protected]>> wrote:

    Hi,

    I've been trying to follow the instructions at
    https://github.com/ovn-org/ovn-kubernetes
    to set up an OVN "Central/Master" high availability (HA).  I want to
    deploy and manage that
    cluster as a Kubernetes service .

    I can find lots of stuff on "ovn-kube" but this seems to be using
    OVN as
    a  kubernetes CNI instead of
    Flannel etc.  But this is not what I want to do, I have a kubernetes
    cluster using Flannel as the CNI,
    now  I want to deploy a HA OVN "Central" as a kubernetes service.
    Kind
    of like how you can deploy
    a MySQL cluster in kubernetes using a SatefulSet deployment.

    I have found this:
    https://github.com/ovn-org/ovn-kubernetes#readme

    But it is not clear to me if this is how to setup OVN as a kubernetes
    CNI or it's how to setup a HA OVN central as kubernetes service.

    I did try he steps in the READMe above, but they did not seem to
    work, then
    I have just seen that there is a ovnkube-db-raft.yaml file, this
    seems more
    promising as it does use a StatefulSet, but I can find no
    documentation
    on this
    file.

    Thanks

    Brendan


_______________________________________________
discuss mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss

Reply via email to