Commit graph

266 commits

Author SHA1 Message Date
romain 78180a5fa7 Merge current v2.4 into v2.5 2021-08-19 11:45:19 +02:00
Jean-Baptiste Doumenjou 187ec26d8e Merge current v2.4 into v2.5 2021-08-05 18:09:23 +02:00
Jean-Baptiste Doumenjou 32d88a977d
Avoid unauthorized midlleware cross namespace reference
Co-authored-by: Mathieu Lonjaret <mathieu.lonjaret@gmail.com>
Co-authored-by: Romain <rtribotte@users.noreply.github.com>
2021-08-05 17:42:08 +02:00
Romain 7f307d60c4
Kubernetes: detect changes for resources other than endpoints 2021-07-30 15:08:10 +02:00
romain a5b169c563 Merge current v2.4 into v2.5 2021-07-20 14:06:13 +02:00
Romain bc5e621683
Get Kubernetes server version early 2021-07-20 13:02:10 +02:00
Daniel Tomcej c2c4dc9b58
Don't remove ingress config on API call failure 2021-07-19 20:06:07 +02:00
Jean-Baptiste Doumenjou 16f65f669b
Update Gateway API version to v0.3.0
Co-authored-by: Tom Moulard <tom.moulard@traefik.io>
2021-07-15 17:20:08 +02:00
Mohammad Gufran 7e43e5615e
Add Support for Consul Connect
Co-authored-by: Florian Apolloner <apollo13@users.noreply.github.com>
2021-07-15 14:02:11 +02:00
romain 3a180e2afc Merge current v2.4 into v2.5 2021-07-13 18:12:29 +02:00
Daniel Tomcej 3c1ed0d9b2
Disable ExternalName Services by default on Kubernetes providers 2021-07-13 12:54:09 +02:00
Daniel Tomcej 3072354ca5
Disable Cross-Namespace by default for IngressRoute provider 2021-07-13 10:48:05 +02:00
romain fc69f882c5 Merge current v2.4 into master 2021-06-28 10:07:17 +02:00
Romain cd68cbd3ea
Fix: malformed Kubernetes resource names and references in tests 2021-06-24 17:32:07 +02:00
romain ce2e02b690 Merge current v2.4 into master 2021-06-22 14:44:56 +02:00
Rio Kierkels 0a3e40332a
Improve CA certificate loading from kubernetes secret 2021-06-14 18:06:10 +02:00
Richard Kojedzinszky f15d05b22f
tls Manager: do not build a default certificate for ACME challenges store
Co-authored-by: Mathieu Lonjaret <mathieu.lonjaret@gmail.com>
Co-authored-by: Romain <rtribotte@users.noreply.github.com>
2021-06-14 10:06:05 +02:00
Romain fc9f41b955
Add TCP Middlewares support 2021-06-11 15:30:05 +02:00
Jean-Baptiste Doumenjou b1fd3b8fc7 fix for review 2021-05-28 17:38:46 +02:00
Wouter Dullaert 456df0fc19 feat: Add ServersTransport annotation to k8s ingress provider 2021-05-28 17:38:46 +02:00
Jakub Coufal 1680f00091
Fix incorrect behaviour with multi-port endpoint subsets 2021-05-28 00:58:07 +02:00
Tom Moulard 56f845c71a
gatewayapi: adding support for TCPRoute and TLSRoute
Co-authored-by: Jean-Baptiste Doumenjou <925513+jbdoumenjou@users.noreply.github.com>
2021-05-20 11:50:12 +02:00
Manuel Zapf e1e1fd640c
Upgrade IngressClass to use v1 over v1Beta on Kube 1.19+ 2021-05-17 16:50:09 +02:00
Henning de2437cfec
kubernetes: remove logging of changed object with cast 2021-05-10 09:42:06 +02:00
Luca Berneking 32e08f3510
Add k8s provider option to create services without endpoints 2021-05-06 18:12:10 +02:00
Joel Berger 70a02158e5
Add wildcard hostname rule to kubernetes gateway 2021-04-29 17:18:04 +02:00
Henning ab71dad51a
[kubernetes] ignore empty endpoint changes 2021-04-29 16:20:03 +02:00
Tom Moulard ac486d3d1d Merge current branch v2.4 into master 2021-04-21 11:39:53 +02:00
Martin Vizvary 5814ba5322
Kubernetes ingress provider to search via all endpoints 2021-04-15 18:16:04 +02:00
Jean-Baptiste Doumenjou cb4fb973b2 Merge current branch v2.4 into master 2021-03-31 09:43:04 +02:00
Tom Moulard 513f6e9a68
Remove error when HTTProutes is empty
Co-authored-by: Jean-Baptiste Doumenjou <925513+jbdoumenjou@users.noreply.github.com>
2021-03-30 16:32:03 +02:00
jcuzzi d13d078351
Add ability to disable HTTP/2 in dynamic config 2021-03-29 14:32:03 +02:00
Manuel Zapf 29908098e4
Upgrade Ingress Handling to work with networkingv1/Ingress 2021-03-15 11:16:04 +01:00
Jean-Baptiste Doumenjou 08e6ae07af
Update to gateway-api v0.2.0
Co-authored-by: Romain <rtribotte@users.noreply.github.com>
2021-03-15 09:44:03 +01:00
Jean-Baptiste Doumenjou 702e301990 Merge current branch v2.4 into master 2021-03-09 12:05:08 +01:00
Romain bdba7d3adf
Update to go1.16 2021-03-04 20:08:03 +01:00
Ludovic Fernandez 2e7833df49
chore: update linter. 2021-03-04 09:02:03 +01:00
Jean-Baptiste Doumenjou 992d4c1b94
Upgrade the CRD version from apiextensions.k8s.io/v1beta1 to apiextensions.k8s.io/v1
Co-authored-by: kevinpollet <pollet.kevin@gmail.com>
2021-03-03 15:32:04 +01:00
Tom Moulard e658712d53
Filter ingress class resources by name
Co-authored-by: SantoDE <manuel.zapf@traefik.io>
2021-03-02 21:34:03 +01:00
Jean-Baptiste Doumenjou d211437d6c Merge v2.4 into master 2021-02-04 10:40:53 +01:00
Jean-Baptiste Doumenjou 7996a42f76
Allow crossprovider service reference
Co-authored-by: Harold Ozouf <harold.ozouf@gmail.com>
2021-02-02 19:36:04 +01:00
LandryBe 9a931e4dc9
fix: add support for multiple ingress classes 2021-01-28 15:08:04 +01:00
Kevin Pollet 41d22ef17e
Improve kubernetes external name service support for UDP 2021-01-19 09:30:05 +01:00
Cirrith bbee63fcf3
Add named port support to Kubernetes IngressRoute CRDs 2021-01-15 15:54:04 +01:00
Kevin Pollet e62a00a3f5
Update copyright year for 2021 2021-01-13 16:50:03 +01:00
romain 92886c46ea Merge branch v2.3 into v2.4 2021-01-11 16:26:53 +01:00
Kevin Pollet c24f75ce0b
Update copyright year for 2021 2021-01-08 19:20:04 +01:00
Henning 63929b0341
Compile kubernetes ingress annotation regex only once 2021-01-07 18:56:03 +01:00
Michael 60d87f3c64
Merge back v2.3 into v2.4 2021-01-06 17:59:03 +01:00
Avdhoot Dendge d4f0a9ff62
Fix wildcard hostname issue 2021-01-05 12:26:04 +01:00
Romain c21597c593
Add Kubernetes Gateway Provider
Co-authored-by: Jean-Baptiste Doumenjou <925513+jbdoumenjou@users.noreply.github.com>
2020-12-15 16:40:05 +01:00
kevinpollet eebbe64b36
Merge branch v2.3 into master 2020-12-11 10:58:00 +01:00
Romain 7ba907f261
IngressRoute: add an option to disable cross-namespace routing
Co-authored-by: Jean-Baptiste Doumenjou <925513+jbdoumenjou@users.noreply.github.com>
2020-12-10 14:58:04 +01:00
Harold Ozouf 7403b6fb82
Fix concatenation of IPv6 addresses and ports 2020-12-04 20:56:04 +01:00
kevinpollet 2112de6f15
Merge branch v2.3 into master 2020-11-20 11:30:07 +01:00
Romain be0845af02
Apply labelSelector as a TweakListOptions for Kubernetes informers 2020-11-20 00:18:04 +01:00
Harold Ozouf a75819cae3
Filter out Helm secrets from informer caches
Co-authored-by: Kevin Pollet <pollet.kevin@gmail.com>
2020-11-19 14:32:03 +01:00
Matthias Schneider 84b125bdde
added support for tcp proxyProtocol v1&v2 to backend 2020-11-17 13:04:04 +01:00
Fernandez Ludovic 520fcf82ae Merge branch v2.3 into master. 2020-11-09 00:07:28 +01:00
Sylvain Rabot d38d11f02e
Set kubernetes client User-Agent to something meaningful 2020-10-30 17:56:03 +01:00
Michael 4ea1c98ac9
Improve anonymize configuration 2020-10-30 12:44:05 +01:00
iamolegga 49cdb67ddc
Middlewares: add forwardAuth.authResponseHeadersRegex 2020-10-29 15:10:04 +01:00
Romain 3567ae88ad
Bump k8s client to v0.19.2 2020-10-08 17:12:04 +02:00
romain afcec56be4 Merge 'v2.3' into master. 2020-10-08 14:05:10 +02:00
Nikita Konev 326be29568
Filter ForwardAuth request headers 2020-10-07 16:36:04 +02:00
Fernandez Ludovic 86c099d629 Merge branch v2.3 into master 2020-09-17 12:32:18 +02:00
Jean-Baptiste Doumenjou c0f1e74bed
chore: move to Traefik organization.
Co-authored-by: Romain <rtribotte@users.noreply.github.com>
2020-09-16 15:46:04 +02:00
Eli Mallon 498e8545b6
feat: update more than one LoadBalancer ip
Co-authored-by: kevinpollet <pollet.kevin@gmail.com>
2020-09-15 13:48:32 +02:00
Julien Salleyron 76f42a3013
add ServersTransport on services 2020-09-11 15:40:03 +02:00
Ludovic Fernandez b67a7215f6
chore: update linter. 2020-08-21 11:12:04 +02:00
Ludovic Fernandez 1502d20def
chore: move the parser to a dedicated package. 2020-08-17 18:04:03 +02:00
Romain dafb14ff37
Support Kubernetes Ingress pathType
Co-authored-by: jbdoumenjou <jb.doumenjou@gmail.com>
Co-authored-by: kevinpollet <pollet.kevin@gmail.com>
2020-07-28 17:50:04 +02:00
Kevin Pollet a136c46148
Use semantic versioning to enable ingress class support 2020-07-21 15:32:04 +02:00
Stephen Solka dcd0cda0c6
prefer NoError/Error over Nil/NotNil 2020-07-19 13:10:03 +02:00
Fernandez Ludovic 0186c31d59 feat: plugins integration. 2020-07-15 20:14:04 +02:00
Daniel Tomcej cb6ec507e2
Add new ingressClass support to ingress provider
* add new ingressClass

* add doc

* lint

* adjust behavior to look for a class with a specific controller

* remove looking strange test ingressclass

* return nil rather than en empty object

* change documentation

* apply @kevinpollet suggestion

* change order of processIngress to be correct and adjust tests

* review: clean.

* review: clean.

* Fix for review

Co-authored-by: Manuel Zapf <manuel@containo.us>
Co-authored-by: Fernandez Ludovic <ludovic@containo.us>
Co-authored-by: Michael <michael.matur@gmail.com>
2020-07-15 19:18:03 +02:00
Fernandez Ludovic 6e4f5821dc Merge branch 'v2.2' into master 2020-07-15 09:37:32 +02:00
John Pekcan 77a0cef9ce
fix k8s crd to read contentType middleware into dynamic config
Co-authored-by: John Pekcan <apekcan@ea.com>
2020-07-13 12:30:03 +02:00
jb doumenjou 73ca7ad0c1 Merge remote-tracking branch 'upstream/v2.2' into mrg-current-v2.2 2020-07-10 11:23:49 +02:00
Ludovic Fernandez a20e90aa17
chore: update linter. 2020-07-07 14:42:03 +02:00
Yongxin Wang b61de07ca0
Remove checkStringQuoteValidity in loadIngressRouteConf
* remove checkStringQuoteValidity in loadIngressRouteConf

* remove checkStringQuoteValidity and related tests in crd

* remove checkStringQuoteValidity from ingress and related tests

Co-authored-by: traefiker <30906710+traefiker@users.noreply.github.com>
2020-07-02 10:34:04 +02:00
Romain 30e0778ed2
Fix sticky cookie ingress annotation doc 2020-07-01 12:58:05 +02:00
Michael 7928e6d0cd
Merge branch 'v2.2' into master 2020-05-18 18:37:11 +02:00
Daniel Tomcej 5f0b6fde92
Upgrade Client-go to 0.18.2 2020-05-14 18:36:06 +02:00
Ludovic Fernandez 328611c619
Update linter 2020-05-11 12:06:07 +02:00
Ludovic Fernandez de42fc10b5
fix: cookie documentation. 2020-04-29 17:10:05 +02:00
Michael 148400ae0a
Add note about health check in kubernetes 2020-04-07 17:16:03 +02:00
Jean-Baptiste Doumenjou ac1657d86e
Delete an unnecessary warning log 2020-04-03 17:06:06 +02:00
Fernandez Ludovic b54412e82e Merge branch v2.1 into v2.2 2020-03-24 14:18:39 +01:00
Ludovic Fernandez 9012f2d6b1
fix: Ingress TLS support
Co-authored-by: Julien Salleyron <julien@containo.us>
2020-03-18 13:30:04 +01:00
mpl 6e92c20edb
docs: clarify multi-levels stickiness 2020-03-17 12:34:04 +01:00
robotte 3b85dc9618
Improve kubernetes external name service support
Co-authored-by: jbdoumenjou <jb.doumenjou@gmail.com>
2020-03-10 12:46:05 +01:00
Dmytro Tananayskiy cf7f0f878a Support mirroring request body
Co-authored-by: Mathieu Lonjaret <mathieu.lonjaret@gmail.com>
Co-authored-by: Julien Salleyron <julien.salleyron@gmail.com>
2020-03-05 18:30:07 +01:00
Fernandez Ludovic e9d0a16a3b Merge 'v2.1' into master 2020-02-29 00:59:18 +01:00
Jean-Baptiste Doumenjou 665aeb34b2
Add UDP support in kubernetesCRD provider
Co-authored-by: Mathieu Lonjaret <mathieu.lonjaret@gmail.com>
2020-02-26 12:28:05 +01:00
Ludovic Fernandez 54df7b0a3c
Update go-acme/lego to v3.4.0 2020-02-26 10:36:05 +01:00
Michael d71e8ab7c9
Fix secret informer load 2020-02-25 15:14:04 +01:00
Daniel Tomcej 3b4c8ba439
Use consistent protocol determination 2020-02-25 10:12:04 +01:00
Daniel Tomcej a474e196ea
Add TLSStores to Kubernetes CRD 2020-02-24 17:14:06 +01:00
Ludovic Fernandez 101aefbfe8
Update dependencies 2020-02-24 16:06:05 +01:00
Ludovic Fernandez a20a5f1a44
Improvement of the unique name of the router for Ingress. 2020-02-18 17:34:05 +01:00
Jean-Baptiste Doumenjou 322c329c6f
fix: use the right error in the log 2020-02-12 18:28:05 +01:00
Daniel Tomcej 7c430e5c9d
Allow PreferServerCipherSuites as a TLS Option 2020-02-12 18:06:04 +01:00
Fernandez Ludovic aa21351d0d Merge branch v2.1 into master 2020-02-10 16:47:13 +01:00
Julien Salleyron 1b63c95c4e
Fix kubernetes providers shutdown and clean safe.Pool 2020-02-03 17:56:04 +01:00
Daniel Tomcej 03689251c5
Allow wildcard hosts in ingress provider 2020-02-03 11:24:06 +01:00
Ludovic Fernandez a4e8d3cb36 doc: use the same entry point name everywhere 2020-01-23 16:36:07 +01:00
mpl c24e74efe3 systematically call updateIngressStatus 2020-01-22 03:44:04 +01:00
Fernandez Ludovic 60e247862a Merge branch v2.1 into master 2020-01-21 18:41:46 +01:00
Julien Salleyron c296a4a967 Remove Content-Type auto-detection
Co-authored-by: mpl <mathieu.lonjaret@gmail.com>
2020-01-21 18:06:03 +01:00
Ludovic Fernandez 72e702a15a Support 'networking.k8s.io/v1beta1' ingress apiVersion 2020-01-16 10:14:06 +01:00
Ludovic Fernandez 6b7be462b8 Add Ingress annotations support
Co-authored-by: jbdoumenjou <jb.doumenjou@gmail.com>
2020-01-14 15:48:06 +01:00
Ludovic Fernandez 4329d393e6 Update license date 2020-01-14 15:22:05 +01:00
Jean-Baptiste Doumenjou 4f52691f71 Add namespace attribute on IngressRouteTCP service 2020-01-14 12:14:05 +01:00
Fernandez Ludovic da3d814c8b Merge branch 'v2.1' into master 2020-01-07 19:13:48 +01:00
Gary Kramlich bd676922c3 k8s Ingress: fix crash on rules with nil http 2020-01-07 16:26:08 +01:00
Jean-Baptiste Doumenjou 7283d7eb2f Log the ignored namespace only when needed 2020-01-07 10:46:04 +01:00
Kenneth Peiruza b501c6d5bf Added ExternalName https support for Kubernetes CRD, as done in v2.0 2019-12-16 21:48:03 +01:00
Wagum 028683666d Update deprecated function call in k8s providers 2019-11-28 00:04:04 +01:00
mpl f30a52c2dc Support for all services kinds (and sticky) in CRD
Co-authored-by: Jean-Baptiste Doumenjou <jb.doumenjou@gmail.com>
Co-authored-by: Julien Salleyron <julien.salleyron@gmail.com>
2019-11-14 19:28:04 +01:00
Kelvin Sarink 5a3e325742 Add tls option for Elliptic Curve Preferences 2019-11-03 15:54:04 +01:00
Ludovic Fernandez 3410541a2f Conditionnal compression based on Content-Type 2019-10-31 11:36:05 +01:00
kmeekva 1f39083555 Add support for MaxVersion in tls.Options 2019-10-29 12:58:05 +01:00
Ludovic Fernandez 5327ce543b Remove unnecessary reload of the configuration. 2019-10-25 15:46:05 +02:00
Kenneth Peiruza 0ec84ec597 Adding support for HTTPs backends with Kubernetes ExternalName services 2019-10-18 11:12:05 +02:00
Ludovic Fernandez cb3328dca3 Normalize service and router names for ingress. 2019-10-14 11:18:04 +02:00
Ludovic Fernandez f2656e62dc fix: default router name for k8s ingress. 2019-10-09 17:16:07 +02:00
XciD a2cd69b654 Fix typo in log 2019-10-07 13:12:05 +02:00
Ludovic Fernandez 48f11900d3 fix: default passHostHeader for file provider. 2019-09-30 18:12:04 +02:00
Ludovic Fernandez 29efac3e5e fix: update linter. 2019-09-26 11:00:06 +02:00
Michael 255e88fbf6 Fix kubernetes id name 2019-09-13 20:44:04 +02:00
Julien Salleyron 685c6dc00c Add weighted round robin load balancer on TCP
Co-authored-by: Mathieu Lonjaret <mathieu.lonjaret@gmail.com>
2019-09-13 20:00:06 +02:00
Julien Salleyron 401b3afa3b Add passHostHeader and responseForwarding in IngressRoute
Co-authored-by: Mathieu Lonjaret <mathieu.lonjaret@gmail.com>
2019-09-13 16:46:04 +02:00
Ludovic Fernandez 7357d5eae2 fix: services configuration documentation. 2019-09-12 10:18:04 +02:00
mpl 1388266102 Finish kubernetes throttling refactoring 2019-09-10 18:30:05 +02:00
Ben Weissmann 43af0b051f Throttle Kubernetes config refresh 2019-09-10 18:30:05 +02:00
Ludovic Fernandez 6e8138e19b Update golangci-lint 2019-09-10 17:52:04 +02:00
Julien Salleyron fb8edd86d5 k8s ErrorPage middleware now uses k8s service 2019-09-10 17:24:03 +02:00
Ludovic Fernandez be90b20a5d fix: TLS domains with IngressRoute. 2019-09-09 13:52:04 +02:00
Julien Salleyron 1959e1fd44 Auth middlewares in kubernetes CRD uses secrets 2019-09-05 13:42:04 +02:00
Julien Salleyron 770b3739e0 The chain middleware in k8s use middlewareRef 2019-09-03 19:20:04 +02:00
Ludovic Fernandez af9762cf32 Improve API for the web UI 2019-09-02 02:38:04 -07:00
Julien Salleyron 6fed76a687 WeightedRoundRobin load balancer
Co-authored-by: Ludovic Fernandez <ldez@users.noreply.github.com>
2019-08-26 01:30:05 -07:00
Daniel Tomcej 9e3f549341 Add TLS-enabled Router 2019-08-14 10:16:06 -07:00
Steven E. Harris 2895ad21f3 Correct Kubernetes Ingress and IngressRoute port heuristic for choosing HTTPS 2019-08-14 09:58:04 -07:00
Fernandez Ludovic 4c5e7a238d chore: go module 2019-08-12 05:06:04 -07:00
Ludovic Fernandez c2d440a914 chore: update docker and k8s 2019-08-05 09:24:03 -07:00
Ludovic Fernandez f75f73f3d2 Certificate resolvers.
Co-authored-by: Julien Salleyron <julien.salleyron@gmail.com>
Co-authored-by: Jean-Baptiste Doumenjou <jb.doumenjou@gmail.com>
2019-07-19 11:52:04 +02:00
Jean-Baptiste Doumenjou 2c7cfd1c68 Expand Client Auth Type configuration 2019-07-12 17:50:04 +02:00
Ludovic Fernandez c8bf8e896a Move dynamic config into a dedicated package. 2019-07-10 09:26:04 +02:00