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

Annotating ingress rules with non-default entryPoints #1898

Closed
kachkaev opened this issue Jul 27, 2017 · 6 comments
Closed

Annotating ingress rules with non-default entryPoints #1898

kachkaev opened this issue Jul 27, 2017 · 6 comments

Comments

@kachkaev
Copy link
Contributor

kachkaev commented Jul 27, 2017

Do you want to request a feature or report a bug?

Feature (maybe)

What did you do?

I'm using traefik as a kubernetes ingress controller. Most of my websites require HTTPS and the encryption perfectly works together with the Letsencrypt certs.

However, I have a couple of websites for which I cannot turn HTTPS on for various reasons and I would like to annotate some of my ingress rules so that traefik served only HTTP.

I've been trying a few variations of the following, but with no luck:

kind: Ingress
metadata:
  annotations:
    traefik.frontend.entryPoints: [\"http\"]
    traefik.frontend.entryPoints: [http]
    traefik.frontend.entryPoints: http
    # etc.
# ...
spec:
  rules:
    - host: website-with-no-https.com
      # ...

No matter what I do, the traefik dashboard keeps showing http + https badges next to the rule and the website gets served from https://....

If configuring entrypoints is not yet supported in the k8s environment, what do you guys think about adding it? If it's just a matter of a missing note in the docs, what annotation should be mentioned there?

@kachkaev kachkaev changed the title kubernetes.io/ingress.allow-http: "false" Annotating HTTP-only ingress rules Jul 27, 2017
@kachkaev kachkaev changed the title Annotating HTTP-only ingress rules Annotating ingress rules with non-default entryPoints Jul 27, 2017
@magna-z
Copy link

magna-z commented Sep 15, 2017

+1

The best way if all frontend/backend options configurable by metadata.annotations in Ingress.

kind: Ingress
metadata:
  annotations:
    traefik.frontend.entryPoints: http,https
    traefik.frontend.headers.SSLRedirect: "true"
    traefik....

@ldez ldez added priority/P2 need to be fixed in the future and removed status/0-needs-triage labels Oct 5, 2017
@gabrielfsousa
Copy link

gabrielfsousa commented Nov 14, 2017

traefik.frontend.entryPoints: http,https
didnt work for me :( it only shows http

@lukasheinrich
Copy link

what there a resolution to this? I also only see http being wired. even though I have

traefik.frontend.entryPoints: "https"

also tried

traefik.frontend.entryPoints: "https"
traefik.frontend.entryPoints: ["https"]
traefik.frontend.entryPoints: '["https"]'

@ldez
Copy link
Member

ldez commented Dec 17, 2017

traefik.frontend.entryPoints: "https, http" or traefik.frontend.entryPoints: "https"

@ldez ldez added kind/bug/confirmed a confirmed bug (reproducible). and removed kind/enhancement a new or improved feature. priority/P2 need to be fixed in the future labels Dec 19, 2017
@ldez
Copy link
Member

ldez commented Dec 19, 2017

I confirmed it's a bug.

@traefiker traefiker added this to the 1.5 milestone Dec 20, 2017
@traefiker
Copy link
Contributor

Closed by #2594.

@traefik traefik locked and limited conversation to collaborators Sep 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants