26 lines
515 B
YAML
26 lines
515 B
YAML
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: example-ingress-tls
|
|
namespace: demo
|
|
labels:
|
|
name: example-ingress-tls
|
|
app: ingress
|
|
type: ingress
|
|
spec:
|
|
tls:
|
|
- hosts:
|
|
- https-example.foo.com
|
|
secretName: testsecret-tls
|
|
rules:
|
|
- host: https-example.foo.com
|
|
http:
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: service1
|
|
port:
|
|
number: 80
|