traefik / traefik-helm-chart

Traefik Proxy Helm Chart
https://traefik.io
Apache License 2.0
1.07k stars 758 forks source link

Why ingress `ADDRESS` not shown #621

Closed icefery closed 3 days ago

icefery commented 2 years ago

Welcome!

What version of the Traefik's Helm Chart are you using?

10.24.0

What version of Traefik are you using?

2.8.0

What did you do?

Chart

ingressClass:
  enabled: true
  isDefaultClass: true

providers:
  kubernetesCRD:
    enabled: true
    allowCrossNamespace: true
    allowExternalNameServices: true
    allowEmptyServices: true
  kubernetesIngress:
    enabled: true
    allowExternalNameServices: true
    allowEmptyServices: true
    publishedService:
      enabled: false

ports:
  traefik:
    port: 9000
    expose: true
    exposedPort: 9000
    nodePort: 9000
    protocol: TCP
  web:
    port: 80
    expose: true
    exposedPort: 80
    nodePort: 80
    protocol: TCP
  websecure:
    port: 443
    expose: true
    exposedPort: 443
    nodePort: 443
    protocol: TCP

service:
  type: NodePort

securityContext:
  capabilities:
    drop: []
    add:
      - ALL
  readOnlyRootFilesystem: false
  runAsGroup: 0
  runAsNonRoot: false
  runAsUser: 0

podSecurityContext:
  fsGroup: 0

Install

helm upgrade traefik traefik/traefik \
  --install \
  --create-namespace \
  --namespace traefik \
  --values values.yaml \
  --version 10.24.0

Optionally

  1. kubectl -n default edit ingress my-app change ingressClassName to nginx

  2. change ingressClassName back to traefik

Ingress

kubectl get ingress -A

What did you see instead?

  1. Inress ADDRESS not shown. image

  2. But they works. image

  3. Try to change ingressClassName to nginx and then change back. ADDRESS is shown.

  4. external-dns can not find ingress endpoints. image

What is your environment & configuration?

image

Additional Information

Thanks!
mloiseleur commented 2 years ago

Hello @icefery, Thanks for your interest in Traefik. This repository is about the Helm Chart of Traefik. The behavior you describe seems to be an issue with Traefik itself and not the Helm chart. So I invite you to test again on last traefik version and submit an issue on traefik repo if it's still there.

jonathanbeber commented 1 week ago

I think this issue fits well this repo as by default providers.kubernetesIngress.publishedService is disabled. That's at least confusing if not a bug in the helmchart.

mloiseleur commented 1 week ago

\o @jonathanbeber This is correct. Thanks. I re-open this issue. Feel free to open a PR on this if you need it.