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

Fixed web entrpypoint #35

Closed
letsbuildfoze opened this issue Jun 5, 2020 · 10 comments
Closed

Fixed web entrpypoint #35

letsbuildfoze opened this issue Jun 5, 2020 · 10 comments
Milestone

Comments

@letsbuildfoze
Copy link

Hello,
I got a error when i started my traefik:

time="2020-06-05T20:16:54Z" level=error msg="middleware "default-https-redirect@kubernetescrd" does not exist" entryPointName=web routerName=default-traefik-dashboard-272dc56f9fbc5761ef41@kubernetescrd
time="2020-06-05T20:16:54Z" level=error msg="middleware "default-https-redirect@kubernetescrd" does not exist" entryPointName=websecure routerName=websecure-default-traefik-dashboard-272dc56f9fbc5761ef41@kubernetescrd
time="2020-06-05T20:16:54Z" level=error msg="middleware "default-https-redirect@kubernetescrd" does not exist" routerName=default-traefik-dashboard-272dc56f9fbc5761ef41@kubernetescrd entryPointName=web
time="2020-06-05T20:16:54Z" level=error msg="middleware "default-https-redirect@kubernetescrd" does not exist" entryPointName=websecure routerName=websecure-default-traefik-dashboard-272dc56f9fbc5761ef41@kubernetescrd

Can you tell me how can i solve it?
Thanks,

@rsoika
Copy link
Member

rsoika commented Jun 5, 2020

This is a typical message form traefik 2.2.x during startup. You can ignore these messages if after the startup phase things work correctly. For example via the traefik web ui you will see if a service or middleware shows still a problem

image

@rsoika rsoika added the question label Jun 5, 2020
@letsbuildfoze
Copy link
Author

letsbuildfoze commented Jun 5, 2020

I got this error on the panel:
Capture
image
With the logs i send you.

@letsbuildfoze
Copy link
Author

letsbuildfoze commented Jun 5, 2020

image
Longhron has no problem, with the ingress.
There are problem with entrypoint of the traefik panel i think?

@kayotimoteo
Copy link

image
Longhron has no problem, with the ingress.
There are problem with entrypoint of the traefik panel i think?

Same thing here

@letsbuildfoze
Copy link
Author

image
Longhron has no problem, with the ingress.
There are problem with entrypoint of the traefik panel i think?

Same thing here

Yes

@rsoika
Copy link
Member

rsoika commented Jun 6, 2020

Ah, ok I think I found the bug in the configuration. The traefik/030-ingress.yaml file should NOT have a middleware https-redirect

It should look like this:

apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
  name: traefik-dashboard
spec:
  routes:
  - match: Host(`traefik.foo.com`)
    kind: Rule
    services:
    - name: api@internal
      kind: TraefikService
    # optional: add basic auth
    #middlewares: 
    #- name: basic-auth

Can you please test this once again and give me your feedkback.

@letsbuildfoze
Copy link
Author

Its works thanks, but how can i redirect http to access my traefik panel to https?

@rsoika rsoika added the bug label Jun 6, 2020
rsoika added a commit that referenced this issue Jun 6, 2020
Issue #35
Signed-off-by: Ralph Soika <ralph.soika@imixs.com>
@rsoika
Copy link
Member

rsoika commented Jun 6, 2020

In your 020-deployment.yaml you should have the following entry for a permanent http->https redirect

    # permanent redirecting of all requests on http (80) to https (443)
    - --entrypoints.web.http.redirections.entryPoint.to=websecure

otherwise you need the middleware configuration per each ingress

@rsoika rsoika added this to the 0.0.4 milestone Jun 6, 2020
@letsbuildfoze
Copy link
Author

letsbuildfoze commented Jun 6, 2020

Here my config file:

 - --entryPoints.traefik.address=:8100
        - --entryPoints.web.address=:80
        - --entryPoints.websecure.address=:443

        # permanent redirecting of all requests on http (80) to https (443)
        - --entrypoints.web.http.redirections.entryPoint.to=websecure
        - --entrypoints.traefik.redirections.entryPoint.to=websecure
        - --entrypoints.websecure.http.tls.certResolver=default

I try to add entrypoints.traefik to redirecto the ui in https.
The redirection is not working ( just for the traefik ui), and when i try to add https i got this:
image

@rsoika
Copy link
Member

rsoika commented Jun 6, 2020

sounds a little bit strange. Can you one again compare the 020-deployment.yaml and the 030-ingress.yaml files with your current config.

You say that the permanent redirect is working for other services but not for the traefik-ui ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants