Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

Simplify for unifi #10789

Merged
merged 1 commit into from
Feb 8, 2019
Merged

Simplify for unifi #10789

merged 1 commit into from
Feb 8, 2019

Conversation

wernerb
Copy link
Contributor

@wernerb wernerb commented Jan 20, 2019

What this PR does / why we need it:

This merges the three services into one, letting you have one service (ClusterIP or LoadBalancer, NodePort) that has all ports necessary for proper communication with UAPs.

The problem now is that with each Service you get a different clusterIP (or expensive LoadBalancer) while actually Unifi requires the 8080:/inform, stun, and discovery to be on the same interface. (Same as upstream docker).
Unifi can't reach stun port right now because its on a different IP, or with NodePort on a different port. NodePort can still work but its also easier through a single service.

Unifi also has no separate IP binding for these ports meaning they are all expected to run off the same IP.

In fact, if the maintainer allows it, we can also remove the controllerService and move everything in one service with multiple named ports.

Signed-off-by: Werner Buck email@wernerbuck.nl

Checklist

[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

  • DCO signed
  • Chart Version bumped
  • Variables are documented in the README.md

@helm-bot helm-bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. Contribution Allowed If the contributor has signed the DCO or the CNCF CLA (prior to the move to a DCO). labels Jan 20, 2019
@helm-bot helm-bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jan 20, 2019
@helm-bot helm-bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jan 20, 2019
@helm-bot helm-bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jan 20, 2019
@helm-bot helm-bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jan 20, 2019
@billimek
Copy link
Collaborator

This is a very welcome simplification, thank you @wernerb!

As the nature of the change isn't backwards-compatible with the current chart, can we please bump the minor semver version? (e.g. to 0.3.0)

@wernerb
Copy link
Contributor Author

wernerb commented Jan 21, 2019

Thanks its bumped.

The discovery and stun ports are part of the same service. Unifi depends
on them to be on the same hostname.

Signed-off-by: Werner Buck <email@wernerbuck.nl>
@helm-bot helm-bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jan 21, 2019
@billimek
Copy link
Collaborator

@wernerb Sorry I didn't address the original question earlier, but agree that a single service for all the things (gui, controller, discovery, stun) makes more sense. Is this something you're willing to include in this PR?

@billimek
Copy link
Collaborator

billimek commented Feb 8, 2019

/lgtm

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: billimek, wernerb

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. labels Feb 8, 2019
@k8s-ci-robot k8s-ci-robot merged commit df3b21e into helm:master Feb 8, 2019
@bootc
Copy link

bootc commented Feb 8, 2019

This merge breaks my UniFi deployment, please see #11268.

billimek added a commit to billimek/charts-fork that referenced this pull request Feb 8, 2019
billimek added a commit to billimek/charts-fork that referenced this pull request Feb 8, 2019
This reverts commit df3b21e.

Signed-off-by: Jeff Billimek <jeff@billimek.com>
tbuchier pushed a commit to tbuchier/charts that referenced this pull request Feb 14, 2019
The discovery and stun ports are part of the same service. Unifi depends
on them to be on the same hostname.

Signed-off-by: Werner Buck <email@wernerbuck.nl>
tbuchier pushed a commit to tbuchier/charts that referenced this pull request Feb 14, 2019
* Revert "Simplify  for unifi (helm#10789)"

This reverts commit df3b21e.

Signed-off-by: Jeff Billimek <jeff@billimek.com>

* bumping chart version as part of reversion

Signed-off-by: Jeff Billimek <jeff@billimek.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. Contribution Allowed If the contributor has signed the DCO or the CNCF CLA (prior to the move to a DCO). lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants