e
This commit is contained in:
parent
645ebed279
commit
59a5890bf5
@ -70,23 +70,27 @@ spec:
|
|||||||
# The default value is Issuer (i.e. a locally namespaced Issuer)
|
# The default value is Issuer (i.e. a locally namespaced Issuer)
|
||||||
kind: ClusterIssuer
|
kind: ClusterIssuer
|
||||||
---
|
---
|
||||||
apiVersion: extensions/v1beta1
|
apiVersion: networking.k8s.io/v1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
cert-manager.io/acme-challenge-type: dns01
|
# add an annotation indicating the issuer to use.
|
||||||
cert-manager.io/cluster-issuer: test-roxedus-com
|
cert-manager.io/cluster-issuer: test-roxedus-com
|
||||||
name: ingress-rule
|
name: myIngress
|
||||||
namespace: default
|
namespace: default
|
||||||
spec:
|
spec:
|
||||||
rules:
|
rules:
|
||||||
- host: hostname
|
- host: test.example.com
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- backend:
|
- pathType: Prefix
|
||||||
serviceName: backend-service
|
path: /
|
||||||
servicePort: 8080
|
backend:
|
||||||
tls:
|
service:
|
||||||
|
name: myservice
|
||||||
|
port:
|
||||||
|
number: 80
|
||||||
|
tls: # < placing a host in the TLS config will determine what ends up in the cert's subjectAltNames
|
||||||
- hosts:
|
- hosts:
|
||||||
- test.roxedus.com
|
- test.roxedus.com
|
||||||
secretName: test-roxedus-com
|
secretName: test-roxedus-com_cert # < cert-manager will store the created certificate in this secret.
|
Loading…
Reference in New Issue
Block a user