2021-08-21 20:43:04 +00:00
|
|
|
apiVersion: networking.k8s.io/v1
|
2018-04-27 00:09:55 +00:00
|
|
|
kind: Ingress
|
|
|
|
metadata:
|
|
|
|
name: nginx-test
|
|
|
|
spec:
|
2021-11-09 15:45:04 +00:00
|
|
|
ingressClassName: nginx
|
2018-04-27 00:09:55 +00:00
|
|
|
tls:
|
|
|
|
- hosts:
|
|
|
|
- foo.bar.com
|
2019-12-17 16:46:43 +00:00
|
|
|
# This assumes tls-secret exists and the SSL
|
2018-04-27 00:09:55 +00:00
|
|
|
# certificate contains a CN for foo.bar.com
|
|
|
|
secretName: tls-secret
|
|
|
|
rules:
|
|
|
|
- host: foo.bar.com
|
|
|
|
http:
|
|
|
|
paths:
|
|
|
|
- path: /
|
2021-11-02 00:13:54 +00:00
|
|
|
pathType: Prefix
|
2018-04-27 00:09:55 +00:00
|
|
|
backend:
|
|
|
|
# This assumes http-svc exists and routes to healthy endpoints
|
2021-11-02 00:13:54 +00:00
|
|
|
service:
|
|
|
|
name: http-svc
|
|
|
|
port:
|
|
|
|
number: 80
|