Skip to content
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

Helm Chart Finalization #633

Open
3 of 6 tasks
acelinkio opened this issue Oct 2, 2024 · 4 comments
Open
3 of 6 tasks

Helm Chart Finalization #633

acelinkio opened this issue Oct 2, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@acelinkio
Copy link
Contributor

acelinkio commented Oct 2, 2024

Feature description

Follow up from #560 MR. Here is a checklist of items to improve the helm chart further and prepare it for prime time!

  • Add CI workflows to test chart
  • Add CI workflows to publish chart to a Helm/OCI repository
  • Add common ingress controller annotations for rewrite needed on ingress (Will add docs if Add prefix every route to kyoo_back #653 is not added before then)
  • Add installation documentation (chart needs to be published)
  • Uniformly quote environment variables throughout the chart
  • Improve values.yaml comments/documentation
@acelinkio acelinkio added the enhancement New feature or request label Oct 2, 2024
@acelinkio
Copy link
Contributor Author

Having some troubles with common ingress controller annotations for rewrite as there is no standard implementations across controllers.

nginx-ingress: Most common ingress controller

haproxy: 2nd most common

nginx inc:

traefik:

caddy:

The next api replacing ingresses, GatewayAPI, handles rewrites in a standardized way

spec:
  rules:
  - matches:
    - path:
        type: PathPrefix
        value: /api
    backendRefs:
    - name: kyoo-back
      port: 5000
    filters:
      - type: URLRewrite
        urlRewrite:
          path:
            type: ReplacePrefixMatch
            replacePrefixMatch: /
  - matches:
    - path:
        type: PathPrefix
        value: /
    backendRefs:
    - name: kyoo-front
      port: 8901

Honestly did not realize how painful it is to handle rewrites. @onedr0p / @joryirving / @bo0tzz any thoughts on how to approach templating ingresses that support rewrite rules?

@bo0tzz
Copy link

bo0tzz commented Oct 24, 2024

I'm not a fan of rewrites for these sort of reasons tbh. How feasible is it to just get rid of the need on an app level, eg by having kyoo-back listen directly on /api @zoriya?

@zoriya
Copy link
Owner

zoriya commented Oct 24, 2024

I could add a env var to prefix every routes if needed yes

@acelinkio
Copy link
Contributor Author

acelinkio commented Oct 26, 2024

I could add a env var to prefix every routes if needed yes

I think that is that is the solution. Until that feature is added, can add in docs the above links on how to manage the rewrite rules. Created for tracking #653.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants