hub: get out of experimental.
Co-authored-by: Romain <rtribotte@users.noreply.github.com>
This commit is contained in:
parent
3b9e155807
commit
358f47443e
7 changed files with 10 additions and 23 deletions
|
@ -507,3 +507,7 @@ As the Kubernetes CRD provider still works with both API Versions (`traefik.io/v
|
||||||
it means that for the same kind, namespace and name, the provider will only keep the `traefik.io/v1alpha1` resource.
|
it means that for the same kind, namespace and name, the provider will only keep the `traefik.io/v1alpha1` resource.
|
||||||
|
|
||||||
In addition, the Kubernetes CRDs API Version `traefik.io/v1alpha1` will not be supported in Traefik v3 itself.
|
In addition, the Kubernetes CRDs API Version `traefik.io/v1alpha1` will not be supported in Traefik v3 itself.
|
||||||
|
|
||||||
|
### Traefik Hub
|
||||||
|
|
||||||
|
In `v2.10`, Traefik Hub is GA and the `experimental.hub` flag is deprecated.
|
||||||
|
|
|
@ -452,7 +452,6 @@
|
||||||
[experimental]
|
[experimental]
|
||||||
kubernetesGateway = true
|
kubernetesGateway = true
|
||||||
http3 = true
|
http3 = true
|
||||||
hub = true
|
|
||||||
[experimental.plugins]
|
[experimental.plugins]
|
||||||
[experimental.plugins.Descriptor0]
|
[experimental.plugins.Descriptor0]
|
||||||
moduleName = "foobar"
|
moduleName = "foobar"
|
||||||
|
|
|
@ -476,7 +476,6 @@ hub:
|
||||||
experimental:
|
experimental:
|
||||||
kubernetesGateway: true
|
kubernetesGateway: true
|
||||||
http3: true
|
http3: true
|
||||||
hub: true
|
|
||||||
plugins:
|
plugins:
|
||||||
Descriptor0:
|
Descriptor0:
|
||||||
moduleName: foobar
|
moduleName: foobar
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
|
|
||||||
Once the Traefik Hub Experimental feature is enabled in Traefik,
|
Once the Traefik Hub feature is enabled in Traefik,
|
||||||
Traefik and its local agent communicate together.
|
Traefik and its local agent communicate together.
|
||||||
|
|
||||||
This agent can:
|
This agent can:
|
||||||
|
@ -27,7 +27,6 @@ This agent can:
|
||||||
|
|
||||||
* Traefik Hub is compatible with Traefik Proxy 2.7 or later.
|
* Traefik Hub is compatible with Traefik Proxy 2.7 or later.
|
||||||
* The Traefik Hub Agent must be installed to connect to the Traefik Hub platform.
|
* The Traefik Hub Agent must be installed to connect to the Traefik Hub platform.
|
||||||
* Activate this feature in the experimental section of the static configuration.
|
|
||||||
|
|
||||||
!!! information "Configuration Discovery"
|
!!! information "Configuration Discovery"
|
||||||
|
|
||||||
|
@ -38,9 +37,6 @@ This agent can:
|
||||||
!!! example "Minimal Static Configuration to Activate Traefik Hub for Docker"
|
!!! example "Minimal Static Configuration to Activate Traefik Hub for Docker"
|
||||||
|
|
||||||
```yaml tab="File (YAML)"
|
```yaml tab="File (YAML)"
|
||||||
experimental:
|
|
||||||
hub: true
|
|
||||||
|
|
||||||
hub:
|
hub:
|
||||||
tls:
|
tls:
|
||||||
insecure: true
|
insecure: true
|
||||||
|
@ -51,9 +47,6 @@ This agent can:
|
||||||
```
|
```
|
||||||
|
|
||||||
```toml tab="File (TOML)"
|
```toml tab="File (TOML)"
|
||||||
[experimental]
|
|
||||||
hub = true
|
|
||||||
|
|
||||||
[hub]
|
[hub]
|
||||||
[hub.tls]
|
[hub.tls]
|
||||||
insecure = true
|
insecure = true
|
||||||
|
@ -64,7 +57,6 @@ This agent can:
|
||||||
```
|
```
|
||||||
|
|
||||||
```bash tab="CLI"
|
```bash tab="CLI"
|
||||||
--experimental.hub
|
|
||||||
--hub.tls.insecure
|
--hub.tls.insecure
|
||||||
--metrics.prometheus.addrouterslabels
|
--metrics.prometheus.addrouterslabels
|
||||||
```
|
```
|
||||||
|
@ -72,9 +64,6 @@ This agent can:
|
||||||
!!! example "Minimal Static Configuration to Activate Traefik Hub for Kubernetes"
|
!!! example "Minimal Static Configuration to Activate Traefik Hub for Kubernetes"
|
||||||
|
|
||||||
```yaml tab="File (YAML)"
|
```yaml tab="File (YAML)"
|
||||||
experimental:
|
|
||||||
hub: true
|
|
||||||
|
|
||||||
hub: {}
|
hub: {}
|
||||||
|
|
||||||
metrics:
|
metrics:
|
||||||
|
@ -83,9 +72,6 @@ This agent can:
|
||||||
```
|
```
|
||||||
|
|
||||||
```toml tab="File (TOML)"
|
```toml tab="File (TOML)"
|
||||||
[experimental]
|
|
||||||
hub = true
|
|
||||||
|
|
||||||
[hub]
|
[hub]
|
||||||
|
|
||||||
[metrics]
|
[metrics]
|
||||||
|
@ -94,7 +80,6 @@ This agent can:
|
||||||
```
|
```
|
||||||
|
|
||||||
```bash tab="CLI"
|
```bash tab="CLI"
|
||||||
--experimental.hub
|
|
||||||
--hub
|
--hub
|
||||||
--metrics.prometheus.addrouterslabels
|
--metrics.prometheus.addrouterslabels
|
||||||
```
|
```
|
||||||
|
|
|
@ -9,5 +9,6 @@ type Experimental struct {
|
||||||
|
|
||||||
KubernetesGateway bool `description:"Allow the Kubernetes gateway api provider usage." json:"kubernetesGateway,omitempty" toml:"kubernetesGateway,omitempty" yaml:"kubernetesGateway,omitempty" export:"true"`
|
KubernetesGateway bool `description:"Allow the Kubernetes gateway api provider usage." json:"kubernetesGateway,omitempty" toml:"kubernetesGateway,omitempty" yaml:"kubernetesGateway,omitempty" export:"true"`
|
||||||
HTTP3 bool `description:"Enable HTTP3." json:"http3,omitempty" toml:"http3,omitempty" yaml:"http3,omitempty" export:"true"`
|
HTTP3 bool `description:"Enable HTTP3." json:"http3,omitempty" toml:"http3,omitempty" yaml:"http3,omitempty" export:"true"`
|
||||||
|
// Deprecated.
|
||||||
Hub bool `description:"Enable the Traefik Hub provider." json:"hub,omitempty" toml:"hub,omitempty" yaml:"hub,omitempty" export:"true"`
|
Hub bool `description:"Enable the Traefik Hub provider." json:"hub,omitempty" toml:"hub,omitempty" yaml:"hub,omitempty" export:"true"`
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,9 +8,8 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func (c *Configuration) initHubProvider() error {
|
func (c *Configuration) initHubProvider() error {
|
||||||
// Hub provider is an experimental feature. It requires the experimental flag to be enabled before continuing.
|
if c.Experimental != nil && c.Experimental.Hub {
|
||||||
if c.Experimental == nil || !c.Experimental.Hub {
|
log.WithoutContext().Warn("Experimental flag for Traefik Hub is deprecated, because Traefik Hub is now GA.")
|
||||||
return errors.New("the experimental flag for Hub is not set")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if _, ok := c.EntryPoints[hub.TunnelEntrypoint]; !ok {
|
if _, ok := c.EntryPoints[hub.TunnelEntrypoint]; !ok {
|
||||||
|
|
|
@ -229,7 +229,7 @@ func (c *Configuration) SetEffectiveConfiguration() {
|
||||||
c.Hub = nil
|
c.Hub = nil
|
||||||
log.WithoutContext().Errorf("Unable to activate the Hub provider: %v", err)
|
log.WithoutContext().Errorf("Unable to activate the Hub provider: %v", err)
|
||||||
} else {
|
} else {
|
||||||
log.WithoutContext().Debugf("Experimental Hub provider has been activated.")
|
log.WithoutContext().Debugf("Hub provider has been activated.")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue