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

[omada-controller] Provide useful defaults #1632

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dimakuz
Copy link

@dimakuz dimakuz commented Jun 25, 2022

Description of the change

Added values for:

  • Data volume mount
  • Ports required to manage EAP access points and other TP Link devices
  • Commented out annotations for nginx-ingress to get ingress working.

Benefits

Simpler set up

Possible drawbacks

N/A

@ghost ghost added size/S Categorises a PR that changes 10-29 lines, ignoring generated files. precommit:ok CI status: pre-commit validation successful changelog:failed CI status: changelog validation failed labels Jun 25, 2022
@truxnell
Copy link
Member

Hi @dimakuz, thanks for the PR!

Looks like you haven't updated the changelog in the Chart.yaml, can you please do so?

@@ -26,15 +26,48 @@ service:
ports:
http:
port: 8043
management:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think it really adds much value to run three separate Services for this. Could you please take a look at how the Unifi Controller chart (https://github.com/k8s-at-home/charts/blob/master/charts/stable/unifi/values.yaml#L47) handles this, and implement it in a similar way?

management:
enabled: false
ports:
tcp29811:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be possible to add descriptive names to these ports?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI, 29811, 29812, 29813 are all device upgrade/management ports.

Comment on lines +61 to +66
# annotations:
# nginx.ingress.kubernetes.io/backend-protocol: HTTPS
# nginx.ingress.kubernetes.io/proxy-redirect-from: https://$http_host:8043/
# nginx.ingress.kubernetes.io/proxy-redirect-to: https://$http_host/
# nginx.ingress.kubernetes.io/configuration-snippet: |
# proxy_set_header Host $http_host:8043;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We try to keep our charts Ingress-agnostic.
Even though the annotations are commented out, it would be preferred if you would describe the required configuration in the README_CONFIG.md.gotmpl file.

I don't know the Omada controller well enough, but I'm also not sure all 4 of these are 100% required? I can imagine that it depends on how the rest of the Ingress (controller) is set up.


# -- Configure persistence settings for the chart under this key.
# @default -- See values.yaml
persistence:
data:
enabled: false
mountPath: /opt/tplink/EAPController/data
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
changelog:failed CI status: changelog validation failed precommit:ok CI status: pre-commit validation successful size/S Categorises a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants