-
Notifications
You must be signed in to change notification settings - Fork 33
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
Expose 6653 port on each node through NodePort to allow OF Master/Standby connection #201
Expose 6653 port on each node through NodePort to allow OF Master/Standby connection #201
Conversation
Thanks @kuujo @charlesmcchan I'll coordinate with the SEBA/VOLTHA team not to break tests and then merge this, most likely Monday. |
{{- end}} | ||
|
||
# workaround for . not working, see | ||
# https://github.com/helm/helm/issues/1311 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not really even that .
doesn't work. It actually does work as intended. This is just a limitation of variable scopes in Go templates. It does make for some pretty messy workarounds. We probably won't get anything out of tracking the issue...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed, but since it took me a little to understand what was going on I still think it's worth tracking, also to show people why I have done something like that and to help if in the future something similar.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep it took me a while to understand how it worked too. It can be pretty frustrating.
Yes let's be careful. I added the |
thanks @kuujo for the Do Not Merge. I'll take it out when we can merge based on upgrade of SEBA/VOLTHA PODs |
This patch exposes a node port for each replica of ONOS that gets deployed on a separate pod when
exposeNodePorts
is set to true invalues.yaml
For example in this case 3 replicas were deployed on 3 nodes and the resulting node ports are:
This allows an aggregation switch to connect to all the instances of ONOS at the same time to achieve the MASTER/STANBY active connections that OF requires.
The switch needs to have the IP of one of the nodes and all the ports configured.
e.g.
A small caveat is that with this patch ONOS can't be automatically scaled up in number of instances.
IF your cluster is deployed in Kind there is a further step needed to expose those node ports.
A custom cfg needs to be given to the deployment of your kind cluster