Explorar el Código

Add example cert.yaml and fix Ingress

master
Ray Burgemeestre hace 6 años
padre
commit
d711eba8c3
Se han modificado 2 ficheros con 24 adiciones y 0 borrados
  1. +23
    -0
      kube/untested/cert.yaml
  2. +1
    -0
      kube/untested/ingress.yaml

+ 23
- 0
kube/untested/cert.yaml Ver fichero

@@ -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 Ver fichero

@@ -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:

Cargando…
Cancelar
Guardar