Add cert manager to nextcloud
This commit is contained in:
parent
427be9456b
commit
fcafe5502c
5 changed files with 25 additions and 5 deletions
|
@ -3,6 +3,7 @@ resources:
|
||||||
- apache-php-configmap.yml
|
- apache-php-configmap.yml
|
||||||
- apcu-configmap.yml
|
- apcu-configmap.yml
|
||||||
- cli-php-configmap.yml
|
- cli-php-configmap.yml
|
||||||
|
- nextcloud-cert-issuer.yml
|
||||||
- nextcloud-configmap.yml
|
- nextcloud-configmap.yml
|
||||||
- nextcloud-deployment.yml
|
- nextcloud-deployment.yml
|
||||||
- nextcloud-ingress.yml
|
- nextcloud-ingress.yml
|
||||||
|
|
15
customers/base/nextcloud-cert-issuer.yaml
Normal file
15
customers/base/nextcloud-cert-issuer.yaml
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
apiVersion: cert-manager.io/v1
|
||||||
|
kind: Issuer
|
||||||
|
metadata:
|
||||||
|
name: letsencrypt
|
||||||
|
spec:
|
||||||
|
acme:
|
||||||
|
server: https://acme-v02.api.letsencrypt.org/directory
|
||||||
|
email: drive@sunet.se
|
||||||
|
privateKeySecretRef:
|
||||||
|
name: letsencrypt
|
||||||
|
solvers:
|
||||||
|
- http01:
|
||||||
|
ingress:
|
||||||
|
class: nginx
|
||||||
|
|
|
@ -4,10 +4,10 @@ kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
name: customer-ingress
|
name: customer-ingress
|
||||||
annotations:
|
annotations:
|
||||||
kubernetes.io/ingress.class: traefik
|
cert-manager.io/issuer: "letsencrypt"
|
||||||
traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
acme.cert-manager.io/http01-edit-in-place: "true"
|
||||||
traefik.ingress.kubernetes.io/router.tls: "true"
|
|
||||||
spec:
|
spec:
|
||||||
|
ingressClassName: nginx
|
||||||
defaultBackend:
|
defaultBackend:
|
||||||
service:
|
service:
|
||||||
name: customer-node
|
name: customer-node
|
||||||
|
|
|
@ -4,8 +4,10 @@ kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
name: customer-ingress
|
name: customer-ingress
|
||||||
annotations:
|
annotations:
|
||||||
kubernetes.io/ingress.class: nginx
|
cert-manager.io/issuer: "letsencrypt"
|
||||||
|
acme.cert-manager.io/http01-edit-in-place: "true"
|
||||||
spec:
|
spec:
|
||||||
|
ingressClassName: nginx
|
||||||
tls:
|
tls:
|
||||||
- hosts:
|
- hosts:
|
||||||
- nordunet.drive.test.sunet.se
|
- nordunet.drive.test.sunet.se
|
||||||
|
|
|
@ -4,8 +4,10 @@ kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
name: customer-ingress
|
name: customer-ingress
|
||||||
annotations:
|
annotations:
|
||||||
kubernetes.io/ingress.class: nginx
|
cert-manager.io/issuer: "letsencrypt"
|
||||||
|
acme.cert-manager.io/http01-edit-in-place: "true"
|
||||||
spec:
|
spec:
|
||||||
|
ingressClassName: nginx
|
||||||
tls:
|
tls:
|
||||||
- hosts:
|
- hosts:
|
||||||
- vinnova.drive.test.sunet.se
|
- vinnova.drive.test.sunet.se
|
||||||
|
|
Loading…
Add table
Reference in a new issue