add a documentation example for dashboard and api for kubernetes CRD
This commit is contained in:
parent
a98c9f99d1
commit
903c63ac13
1 changed files with 22 additions and 0 deletions
|
@ -19,6 +19,28 @@ deploy:
|
||||||
- "traefik.http.services.dummy-svc.loadbalancer.server.port=9999"
|
- "traefik.http.services.dummy-svc.loadbalancer.server.port=9999"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
```yaml tab="Kubernetes CRD"
|
||||||
|
apiVersion: traefik.containo.us/v1alpha1
|
||||||
|
kind: IngressRoute
|
||||||
|
metadata:
|
||||||
|
name: traefik-dashboard
|
||||||
|
spec:
|
||||||
|
routes:
|
||||||
|
- match: Host(`traefik.domain.com`)
|
||||||
|
kind: Rule
|
||||||
|
services:
|
||||||
|
- name: api@internal
|
||||||
|
kind: TraefikService
|
||||||
|
---
|
||||||
|
apiVersion: traefik.containo.us/v1alpha1
|
||||||
|
kind: Middleware
|
||||||
|
metadata:
|
||||||
|
name: auth
|
||||||
|
spec:
|
||||||
|
basicAuth:
|
||||||
|
secret: secretName # Kubernetes secret named "secretName"
|
||||||
|
```
|
||||||
|
|
||||||
```yaml tab="Consul Catalog"
|
```yaml tab="Consul Catalog"
|
||||||
# Dynamic Configuration
|
# Dynamic Configuration
|
||||||
- "traefik.http.routers.api.rule=Host(`traefik.domain.com`)"
|
- "traefik.http.routers.api.rule=Host(`traefik.domain.com`)"
|
||||||
|
|
Loading…
Reference in a new issue