You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(traefik)!: disable legacy listeners on traefik.containo.us API Group (kubernetes-sigs#5565)
* feat(traefik)!: disable legacy listeners on traefik.containo.us API Group
* update docs accordingly
* update test accordingly
* type argument is infered
* fix rebase
Copy file name to clipboardExpand all lines: docs/flags.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,7 @@
50
50
|`--service-type-filter=SERVICE-TYPE-FILTER`| The service types to filter by. Specify multiple times for multiple filters to be applied. (optional, default: all, expected: ClusterIP, NodePort, LoadBalancer or ExternalName) |
51
51
|`--source=source`| The resource types that are queried for endpoints; specify multiple times for multiple sources (required, options: service, ingress, node, pod, fake, connector, gateway-httproute, gateway-grpcroute, gateway-tlsroute, gateway-tcproute, gateway-udproute, istio-gateway, istio-virtualservice, cloudfoundry, contour-httpproxy, gloo-proxy, crd, empty, skipper-routegroup, openshift-route, ambassador-host, kong-tcpingress, f5-virtualserver, f5-transportserver, traefik-proxy) |
52
52
|`--target-net-filter=TARGET-NET-FILTER`| Limit possible targets by a net filter; specify multiple times for multiple possible nets (optional) |
53
-
|`--[no-]traefik-disable-legacy`|Disable listeners on Resources under the traefik.containo.us API Group |
53
+
|`--[no-]traefik-enable-legacy`|Enable legacy listeners on Resources under the traefik.containo.us API Group |
54
54
|`--[no-]traefik-disable-new`| Disable listeners on Resources under the traefik.io API Group |
55
55
|`--provider=provider`| The DNS provider where the DNS records will be created (required, options: akamai, alibabacloud, aws, aws-sd, azure, azure-dns, azure-private-dns, civo, cloudflare, coredns, digitalocean, dnsimple, exoscale, gandi, godaddy, google, inmemory, linode, ns1, oci, ovh, pdns, pihole, plural, rfc2136, scaleway, skydns, transip, webhook) |
56
56
|`--provider-cache-time=0s`| The time to cache the DNS provider record list requests. |
| --traefik-disable-legacy | Disable listeners on Resources under traefik.containo.us |
85
+
| --traefik-enable-legacy | Enable listeners on Resources under traefik.containo.us |
86
86
| --traefik-disable-new | Disable listeners on Resources under traefik.io |
87
87
88
-
### Disabling Resource Listeners
88
+
### Resource Listeners
89
89
90
-
Traefik has deprecated the legacy API group, `traefik.containo.us`, in favor of `traefik.io`. By default the `traefik-proxy` source will listen for resources under both API groups; however, this may cause timeouts with the following message
90
+
Traefik has deprecated the legacy API group, _traefik.containo.us_, in favor of _traefik.io_. By default the `traefik-proxy` source listen for resources under traefik.io API groups.
91
91
92
-
```sh
93
-
FATA[0060] failed to sync traefik.io/v1alpha1, Resource=ingressroutes: context deadline exceeded
94
-
```
95
-
96
-
In this case you can disable one or the other API groups with `--traefik-disable-new` or `--traefik-disable-legacy`
92
+
If needed, you can enable legacy listener with `--traefik-enable-legacy` and also disable new listener with `--traefik-disable-new`.
app.Flag("service-type-filter", "The service types to filter by. Specify multiple times for multiple filters to be applied. (optional, default: all, expected: ClusterIP, NodePort, LoadBalancer or ExternalName)").Default(defaultConfig.ServiceTypeFilter...).StringsVar(&cfg.ServiceTypeFilter)
app.Flag("target-net-filter", "Limit possible targets by a net filter; specify multiple times for multiple possible nets (optional)").StringsVar(&cfg.TargetNetFilter)
493
-
app.Flag("traefik-disable-legacy", "Disable listeners on Resources under the traefik.containo.us API Group").Default(strconv.FormatBool(defaultConfig.TraefikDisableLegacy)).BoolVar(&cfg.TraefikDisableLegacy)
493
+
app.Flag("traefik-enable-legacy", "Enable legacy listeners on Resources under the traefik.containo.us API Group").Default(strconv.FormatBool(defaultConfig.TraefikEnableLegacy)).BoolVar(&cfg.TraefikEnableLegacy)
494
494
app.Flag("traefik-disable-new", "Disable listeners on Resources under the traefik.io API Group").Default(strconv.FormatBool(defaultConfig.TraefikDisableNew)).BoolVar(&cfg.TraefikDisableNew)
0 commit comments