Browse Source

Add example cert.yaml and fix Ingress

master
Ray Burgemeestre 6 years ago
parent
commit
d711eba8c3
2 changed files with 24 additions and 0 deletions
  1. +23
    -0
      kube/untested/cert.yaml
  2. +1
    -0
      kube/untested/ingress.yaml

+ 23
- 0
kube/untested/cert.yaml View File

@@ -0,0 +1,23 @@
apiVersion: certmanager.k8s.io/v1alpha1
kind: Certificate
metadata:
name: webserver-cheerp-cert
namespace: default
spec:
secretName: webserver-cheerp-tls
issuerRef:
name: letsencrypt-staging
commonName: cheerp.cppse.nl
dnsNames:
- cheerp.cppse.nl
acme:
config:
- http01:
ingressClass: nginx
domains:
- cheerp.cppse.nl
- http01:
ingress: my-ingress
domains:
- cheerp.cppse.nl


kube/ingress.yaml → kube/untested/ingress.yaml View File

@@ -6,6 +6,7 @@ metadata:
annotations:
# enable kube-lego for this ingress
kubernetes.io/tls-acme: "true"
nginx.ingress.kubernetes.io/rewrite-target: /
spec:
# this enables tls for the specified domain names
tls:

Loading…
Cancel
Save