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

Using nginx this way is a kubernetes anti-pattern #26

Closed
onedr0p opened this issue May 29, 2023 · 6 comments
Closed

Using nginx this way is a kubernetes anti-pattern #26

onedr0p opened this issue May 29, 2023 · 6 comments
Assignees

Comments

@onedr0p
Copy link

onedr0p commented May 29, 2023

The proper was to get outside access to your cluster apps is to use an ingress controller like ingress-nginx and define ingress resources per application. For SSL the proper way to add certificates is to use cert-manager.

Once cert-manager is configured with the dns01 challenge you can put a common annotation on the ingresses to request, apply and use SSL certificates.

@aleksasiriski
Copy link

aleksasiriski commented May 29, 2023

+1, maybe even consider switching to cloudnative solutions like Traefik CE with cert-manager.

Also @KyleTryon consider switching to @onedr0p container images (:

@onedr0p
Copy link
Author

onedr0p commented May 29, 2023

Probably another issue for tracking but feel free to read my mission statement on the containers I build:

https://github.com/onedr0p/containers#mission-statement

@gmemstr
Copy link

gmemstr commented May 29, 2023

@aleksasiriski I'm curious about the traefik recommendation - any particular reason to use it over nginx? Since most of the config is abstracted away by the ingress config anyways.

@onedr0p
Copy link
Author

onedr0p commented May 29, 2023

Personally I would not use Traefik as an ingress controller in k8s and instead use ingress-nginx.

See my comments here:
https://old.reddit.com/r/kubernetes/comments/137u79r/ingress_controller_for_vanilla_k8s/jiy8r89/

@aleksasiriski
Copy link

@aleksasiriski I'm curious about the traefik recommendation - any particular reason to use it over nginx? Since most of the config is abstracted away by the ingress config anyways.

Personal preference, but go with either one. Some of the statements onedr0p mentions I can agree with but other not so much. So, again, it's personal preference for me but both are fine.

@KyleTryon KyleTryon self-assigned this Jun 20, 2023
@onedr0p
Copy link
Author

onedr0p commented Oct 11, 2023

The author of this project is aware of this now and is up to them to wether or not to update their project, closing...

@onedr0p onedr0p closed this as completed Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants