40 lines
769 B
YAML
40 lines
769 B
YAML
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: ingress
|
|
annotations:
|
|
bunkerweb.io/AUTOCONF: "yes"
|
|
bunkerweb.io/AUTO_LETS_ENCRYPT: "yes"
|
|
|
|
spec:
|
|
rules:
|
|
- host: app1.example.com
|
|
http:
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: svc-app1
|
|
port:
|
|
number: 80
|
|
- host: app2.example.com
|
|
http:
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: svc-app2
|
|
port:
|
|
number: 80
|
|
- host: app3.example.com
|
|
http:
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: svc-app3
|
|
port:
|
|
number: 80 |