feat(ingress): add native ingressEndpoint hostname and ip support#1695
Merged
traefiker merged 1 commit intotraefik:masterfrom Mar 11, 2026
Merged
Conversation
123540c to
67b0014
Compare
mloiseleur
approved these changes
Mar 11, 2026
…esIngress provider
Currently, setting the Kubernetes Ingress endpoint hostname or IP requires
using additionalArguments with raw CLI flags:
additionalArguments:
- "--providers.kubernetesingress.ingressendpoint.hostname=example.com"
This adds first-class values support for these options under
providers.kubernetesIngress.ingressEndpoint, consistent with how
publishedService is already exposed:
providers:
kubernetesIngress:
ingressEndpoint:
hostname: example.com
ip: 1.2.3.4
These map to the Traefik static configuration options
--providers.kubernetesingress.ingressendpoint.hostname and
--providers.kubernetesingress.ingressendpoint.ip respectively.
67b0014 to
671df2d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds first-class
values.yamlsupport forproviders.kubernetesIngress.ingressEndpoint.hostnameandproviders.kubernetesIngress.ingressEndpoint.ip.Why
Currently, setting the Kubernetes Ingress endpoint hostname or IP requires raw CLI flags via
additionalArguments:This is inconsistent with how
publishedServiceis already exposed as a native value. TheingressEndpoint.hostnameandingressEndpoint.ipoptions are part of Traefik's static configuration but have no corresponding Helm values.Changes
providers.kubernetesIngress.ingressEndpoint.hostnameandproviders.kubernetesIngress.ingressEndpoint.ip(both default to empty string / disabled)--providers.kubernetesingress.ingressendpoint.hostnameand--providers.kubernetesingress.ingressendpoint.ipwhen setUsage
This is useful when using an internal load balancer that assigns an IP rather than a hostname, and you need to explicitly set the hostname that appears in Ingress resource status.