mirror of https://github.com/sgoudham/k8s
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.1 KiB
YAML
47 lines
1.1 KiB
YAML
2 years ago
|
apiVersion: networking.k8s.io/v1
|
||
|
kind: Ingress
|
||
|
metadata:
|
||
|
labels:
|
||
1 year ago
|
app: website-preview
|
||
|
name: website-preview
|
||
2 years ago
|
namespace: website
|
||
|
annotations:
|
||
|
traefik.ingress.kubernetes.io/router.entrypoints: web, websecure
|
||
1 year ago
|
traefik.ingress.kubernetes.io/router.middlewares: website-drop-www-redirect-preview@kubernetescrd
|
||
2 years ago
|
spec:
|
||
|
ingressClassName: traefik
|
||
|
rules:
|
||
1 year ago
|
- host: preview.goudham.com
|
||
2 years ago
|
http:
|
||
|
paths:
|
||
|
- backend:
|
||
|
service:
|
||
1 year ago
|
name: website-preview
|
||
2 years ago
|
port:
|
||
|
number: 3000
|
||
|
path: /
|
||
|
pathType: Prefix
|
||
1 year ago
|
- host: www.preview.goudham.com
|
||
2 years ago
|
http:
|
||
|
paths:
|
||
|
- backend:
|
||
|
service:
|
||
1 year ago
|
name: website-preview
|
||
2 years ago
|
port:
|
||
|
number: 3000
|
||
|
path: /
|
||
|
pathType: Prefix
|
||
|
tls:
|
||
|
- hosts:
|
||
1 year ago
|
- preview.goudham.com
|
||
2 years ago
|
---
|
||
|
apiVersion: traefik.containo.us/v1alpha1
|
||
|
kind: Middleware
|
||
|
metadata:
|
||
1 year ago
|
name: drop-www-redirect-preview
|
||
|
namespace: website
|
||
2 years ago
|
spec:
|
||
|
redirectRegex:
|
||
1 year ago
|
regex: ^https://www.preview.goudham.com/(.*)
|
||
|
replacement: https://preview.goudham.com/${1}
|