mirror of
https://github.com/furyhawk/cloudy.git
synced 2026-05-24 17:06:00 +00:00
32 lines
588 B
YAML
32 lines
588 B
YAML
---
|
|
apiVersion: traefik.containo.us/v1alpha1
|
|
kind: Middleware
|
|
metadata:
|
|
name: nginx-add-prefix
|
|
spec:
|
|
addPrefix:
|
|
prefix: /hello
|
|
|
|
---
|
|
apiVersion: traefik.containo.us/v1alpha1
|
|
kind: IngressRoute
|
|
metadata:
|
|
name: nginx
|
|
namespace: default
|
|
spec:
|
|
entryPoints:
|
|
- web
|
|
routes:
|
|
- match: Host(`nginx.example.com`)
|
|
kind: Rule
|
|
services:
|
|
- name: nginx-deploy-main
|
|
port: 80
|
|
- match: Host(`nginx.example.org`)
|
|
kind: Rule
|
|
middlewares:
|
|
- name: nginx-add-prefix
|
|
services:
|
|
- name: nginx-deploy-main
|
|
port: 80
|