-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
add noop@internal in the docs #7291
Comments
Also, i am curious if there is a way to use noop@internal with the Kubernetes Ingress Provider? |
@joseffilzmaier It worked fine for me. ---
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: confluence
spec:
routes:
- match: Host(`confluence.oldsitename.nl`)
kind: Rule
middlewares:
- name: confluence-redirectregex
services:
- name: noop@internal
kind: TraefikService
---
apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
name: confluence-redirectregex
spec:
redirectRegex:
regex: ^http[s]?://confluence.oldsitename.nl/(.*)
replacement: https://confluence.newsitename.nl/${1} |
This works for me as well! I was talking about However, i am receiving constant error logs in Thanks for the example though |
I add in my IngressRoute the lines: services:
- name: noop@internal
kind: TraefikService I see this in the Traefik pod logs:
These |
Also, regarding the original place where I encountered noop@internal, this approach verbatim didn't work for me. When I try adding the additional entrypoints the Traefik pods go into a crash loop trying to bind to port 443. What did work was:
I also set the priority to 1 so that any explicit routes I create will override this. Therefore, the cert-manager will run fine, and any additional port 80 Ingress that I define will work without having to think about it. I feel like this follows principle of least surprise. Mentioning it here as it may be relevant to presently discussed documentation. |
There seems to be no documentation about this, but I saw some references in it to the logs, as well as some public mentions: - traefik/traefik#7242 - traefik/traefik#7291
Feature
Followup #7242
What did you expect to see?
noop@internal
seems not to be in the docs. However, this is a great point to write redirects without dummy k8-services and -pods.The text was updated successfully, but these errors were encountered: