2022-08-25 18:58:00 +03:00
|
|
|
apiVersion: networking.k8s.io/v1
|
2018-08-03 17:24:32 +03:00
|
|
|
kind: Ingress
|
|
|
|
metadata:
|
|
|
|
annotations:
|
2020-07-14 17:51:57 +03:00
|
|
|
kubernetes.io/ingress.allow-http: 'false'
|
2018-08-03 17:24:32 +03:00
|
|
|
kubernetes.io/ingress.class: nginx
|
|
|
|
name: nginx
|
2019-11-24 03:53:03 +03:00
|
|
|
spec:
|
|
|
|
rules:
|
|
|
|
- host: foo.example.com
|
|
|
|
http:
|
|
|
|
paths:
|
|
|
|
- backend:
|
2022-08-25 18:58:00 +03:00
|
|
|
service:
|
|
|
|
name: foo
|
|
|
|
port:
|
|
|
|
number: 80
|
|
|
|
pathType: Exact
|
2019-11-24 03:53:03 +03:00
|
|
|
- host: default.example.com
|
|
|
|
http:
|
|
|
|
paths:
|
|
|
|
- backend:
|
2022-08-25 18:58:00 +03:00
|
|
|
service:
|
|
|
|
name: default
|
|
|
|
port:
|
|
|
|
number: 80
|
|
|
|
pathType: Exact
|
2019-11-24 03:53:03 +03:00
|
|
|
tls:
|
|
|
|
- hosts:
|
|
|
|
- foo.example.com
|
|
|
|
secretName: foo-certificate
|
|
|
|
- hosts:
|
|
|
|
- default.example.com
|
|
|
|
secretName: default-certificate
|