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

kubernetes gateway service probably should not default to the helm chart service if the service is disabled #1291

Closed
2 tasks done
AndrewSav opened this issue Jan 3, 2025 · 3 comments · Fixed by #1300
Closed
2 tasks done
Labels
kind/bug/confirmed a confirmed bug (reproducible).

Comments

@AndrewSav
Copy link

Welcome!

  • Yes, I've searched similar issues on GitHub and didn't find any.
  • Yes, I've searched similar issues on the Traefik community forum and didn't find any.

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

33.2.1

What version of Traefik are you using?

3.1.2

What did you do?

Excerpt from the values file:

...
ports:
  web: null
  websecure:
    hostPort: 9443
    port: 9443
    tls:
      enabled: true
service:
  enabled: false
providers:
  kubernetesGateway:
    enabled: true
gateway:
  listeners:
    web: null
    websecure:
      port: 9443
      protocol: HTTPS
      certificateRefs:
        - kind: Secret
          name: gateway-cert
...

What did you see instead?

Comment with regards to the bug report form: the question "What did you see instead?" only makes sense if you asked "What did you expect to see?" first

In the logs:

ERR Unable to get Gateway status addresses error="could not find a service with name traefik in namespace traefik" providerName=kubernetesgateway

What is your environment & configuration?

It appears to me that those are not relevant, but if you feel some crucial information is missing, please let me know and I'll gladly provide it.

Additional Information

If possible, the chart should check if the service is enabled, and only use the default, if this is the case.
@mloiseleur mloiseleur added kind/bug/confirmed a confirmed bug (reproducible). and removed status/0-needs-triage labels Jan 3, 2025
@mloiseleur
Copy link
Member

@AndrewSav thanks for this detailed bug report, it's quite clear 👍 .

@AndrewSav
Copy link
Author

@mloiseleur

Tried to upgrade with helm upgrade to 34.0.0 and got this:

Error: UPGRADE FAILED: template: traefik/templates/_podtemplate.tpl:566:33: executing "traefik.podTemplate" at <.service.enabled>: nil pointer evaluating interface {}.enabled

Is there a regression on this one?

@AndrewSav
Copy link
Author

Never mind, that was due to this change I've updated my values file accordingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug/confirmed a confirmed bug (reproducible).
Projects
None yet
2 participants