Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Kubernetes with OVN #350
Comments
|
@AakashKT Hi, thanks for taking the time to write this up. We have a PR open (kubernetes/kubernetes#47912) that will allow you to pass arbitrary args to We would need to add similar support for manipulating the args of the other services. A bug for this was opened recently (#339), but we haven't done any work on that yet. Seeing that you have a specific use case that requires those features, we'll take a look at in our next development sprint. I can't promise that it will get finished in that sprint, but we'll at least do some planning around it and get started. |
tvansteenburgh
added
the
kind/feature
label
Jul 12, 2017
tvansteenburgh
added this to the 2017.08.04 milestone
Jul 12, 2017
|
Since this is a subordinate, isn't there an interface he could implement
that would allow adding args to kublet, etc?
…
|
|
@marcoceppi We don't have an interface that does that today, and I think that allowing args to be set via config is more generally useful (two other people have already asked for it). |
|
I don't disagree this feature of config set is needed, but surely flannel charm is setting args somehow? The idea that deploying a subordinate /then/ changing configuration is a step backwards in the Juju model |
|
So, there's a kubernetes-cni interface, but it only has a cidr key. It might be worth having that interface expanded if there's anything missing for this, or allowing to pass args through so the setup is pluggable |
AakashKT
commented
Jul 13, 2017
|
@tvansteenburgh @marcoceppi Thanks for the update! Good hear that there is a PR already addressing this issue. @marcoceppi Hi! First off,I would like to say that your talks/tutorials on juju charms helped me a lot to get things started. Thanks a lot for those. |
AakashKT
commented
Jul 25, 2017
|
An update :
@ktsakalozos deployed the bundle, and noticed some of the pods were not starting, and has created an issue here : AakashKT/ovn-kubernetes-charm#3 |
|
@AakashKT Can we close this and just use AakashKT/ovn-kubernetes-charm#3 ? |
AakashKT
commented
Aug 12, 2017
|
@tvansteenburgh Yeah! Sorry, I just saw you reply here. |
AakashKT commentedJul 12, 2017
•
Edited 1 time
-
marcoceppi
Jul 12, 2017
Hello everyone,
This is a thread to discuss a charm for deploying Kubernetes with OVN which I am working on.
Documentation reference : https://github.com/openvswitch/ovn-kubernetes
Charm : cs:~aakashkt/ovn-2
Charm code : https://github.com/AakashKT/ovn-kubernetes-charm
The bundle file for deploying the whole of kubernetes using OVN is as below:
Note1 : If you plan to deploy the above, make sure you change the 'gateway-physical-interface' config option in ovn charm to your default interface on the machine. 'ip route | grep default' should get you the name of default interface.
Note2 : Also, you will have to grant access to ports 6641 and 6642 on master and port 8080 both on master and worker, in your cloud providers firewall rules
The above setup gets stuck for master at 'waiting for kube-system pods to start'. On looking further, I found that for some reason, the worker node does not register with master, and I need to pass specific args while starting the services.
@ktsakalozos suggested to restart snap services on master and worker providing custom arguments by editing the /var/snap/service/current/args file, kill services, using /snap/service/3/service --args to restart them
On doing that, the service runs perfectly.
I am providing the exact arguments below, for each service:
Master
Worker
This should start kubernetes normally (It may not show up that way in 'juju status')
Now, the main issue here is how do I get these args passed in the main kubernetes-worker and kubernetes-master charm, and if that is done, does Kubernetes still start normally?
I have not put SSL in OVN, but maybe that is required? Also, I am aware that starting k8s by the above options starts it without SSL, but I guess we can figure out how to start k8s with SSL and correspondingly OVN too.