Try the native lb
This commit is contained in:
@@ -9,6 +9,36 @@ spec:
|
|||||||
- match: Host(`podinfo.k3s`)
|
- match: Host(`podinfo.k3s`)
|
||||||
kind: Rule
|
kind: Rule
|
||||||
services:
|
services:
|
||||||
|
- name: podinfo
|
||||||
|
namespace: apps
|
||||||
|
nativeLB: true
|
||||||
|
kind: Service
|
||||||
|
port: 9898
|
||||||
|
---
|
||||||
|
apiVersion: traefik.io/v1alpha1
|
||||||
|
kind: Middleware
|
||||||
|
metadata:
|
||||||
|
name: podinfo-strip
|
||||||
|
namespace: apps
|
||||||
|
spec:
|
||||||
|
stripPrefix:
|
||||||
|
prefixes:
|
||||||
|
- /podinfo
|
||||||
|
---
|
||||||
|
apiVersion: traefik.io/v1alpha1
|
||||||
|
kind: IngressRoute
|
||||||
|
metadata:
|
||||||
|
name: podinfo-path
|
||||||
|
spec:
|
||||||
|
entryPoints:
|
||||||
|
- web
|
||||||
|
routes:
|
||||||
|
- match: PathPrefix(`/podinfo`)
|
||||||
|
kind: Rule
|
||||||
|
middlewares:
|
||||||
|
- name: podinfo-strip
|
||||||
|
namespace: apps
|
||||||
|
services:
|
||||||
- name: podinfo
|
- name: podinfo
|
||||||
namespace: apps
|
namespace: apps
|
||||||
kind: Service
|
kind: Service
|
||||||
|
|||||||
Reference in New Issue
Block a user