From 901311a4287e7a7499873da53f8a093448846588 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simen=20R=C3=B8stvik?= Date: Wed, 30 Nov 2022 15:58:22 +0100 Subject: [PATCH] e --- apps/templates/cert-manager.yaml | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/apps/templates/cert-manager.yaml b/apps/templates/cert-manager.yaml index 89e625d..8348597 100644 --- a/apps/templates/cert-manager.yaml +++ b/apps/templates/cert-manager.yaml @@ -70,23 +70,27 @@ spec: # The default value is Issuer (i.e. a locally namespaced Issuer) kind: ClusterIssuer --- -apiVersion: extensions/v1beta1 +apiVersion: networking.k8s.io/v1 kind: Ingress metadata: annotations: - cert-manager.io/acme-challenge-type: dns01 + # add an annotation indicating the issuer to use. cert-manager.io/cluster-issuer: test-roxedus-com - name: ingress-rule + name: myIngress namespace: default spec: rules: - - host: hostname + - host: test.example.com http: paths: - - backend: - serviceName: backend-service - servicePort: 8080 - tls: + - pathType: Prefix + path: / + backend: + 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: - test.roxedus.com - secretName: test-roxedus-com \ No newline at end of file + secretName: test-roxedus-com_cert # < cert-manager will store the created certificate in this secret. \ No newline at end of file