69 lines
1.5 KiB
YAML
69 lines
1.5 KiB
YAML
apiVersion: networking.k8s.io/v1beta1
|
|
kind: Ingress
|
|
metadata:
|
|
name: todo2-new
|
|
labels:
|
|
kiamol: ch15
|
|
annotations:
|
|
kubernetes.io/ingress.class: traefik
|
|
traefik.ingress.kubernetes.io/router.pathmatcher: Path
|
|
traefik.ingress.kubernetes.io/router.tls: "true"
|
|
spec:
|
|
rules:
|
|
- host: todo2.kiamol.local
|
|
http:
|
|
paths:
|
|
- path: /new
|
|
backend:
|
|
serviceName: todo-web-sticky
|
|
servicePort: 80
|
|
tls:
|
|
- secretName: kiamol-cert
|
|
---
|
|
apiVersion: networking.k8s.io/v1beta1
|
|
kind: Ingress
|
|
metadata:
|
|
name: todo2-static
|
|
labels:
|
|
kiamol: ch15
|
|
annotations:
|
|
kubernetes.io/ingress.class: traefik
|
|
traefik.ingress.kubernetes.io/router.pathmatcher: PathPrefix
|
|
traefik.ingress.kubernetes.io/router.tls: "true"
|
|
spec:
|
|
rules:
|
|
- host: todo2.kiamol.local
|
|
http:
|
|
paths:
|
|
- path: /static
|
|
backend:
|
|
serviceName: todo-web
|
|
servicePort: 80
|
|
tls:
|
|
- secretName: kiamol-cert
|
|
---
|
|
apiVersion: networking.k8s.io/v1beta1
|
|
kind: Ingress
|
|
metadata:
|
|
name: todo2
|
|
labels:
|
|
kiamol: ch15
|
|
annotations:
|
|
kubernetes.io/ingress.class: traefik
|
|
traefik.ingress.kubernetes.io/router.pathmatcher: Path
|
|
traefik.ingress.kubernetes.io/router.tls: "true"
|
|
spec:
|
|
rules:
|
|
- host: todo2.kiamol.local
|
|
http:
|
|
paths:
|
|
- path: /
|
|
backend:
|
|
serviceName: todo-web
|
|
servicePort: 80
|
|
- path: /list
|
|
backend:
|
|
serviceName: todo-web
|
|
servicePort: 80
|
|
tls:
|
|
- secretName: kiamol-cert |