fix(cert-manager): Trying to configure a service to use cert-manager

This commit is contained in:
Vegard Hagen
2023-01-24 21:23:45 +01:00
parent ee15bb9970
commit 3190aefd4a
4 changed files with 9 additions and 11 deletions

View File

@@ -4,14 +4,14 @@ metadata:
name: whoami
namespace: whoami
annotations:
cert-manager.io/issuer: "le-example-http"
cert-manager.io/issuer: "le-whoami-http"
spec:
tls:
- hosts:
- whoami.ratatoskr.myddns.rocks
- cert.stonegarden.dev
secretName: tls-whoami-ingress-http
rules:
- host: whoami.ratatoskr.myddns.rocks
- host: cert.stonegarden.dev
http:
paths:
- path: /
@@ -20,4 +20,4 @@ spec:
service:
name: whoami
port:
name: web
number: 80

View File

@@ -1,16 +1,15 @@
apiVersion: cert-manager.io/v1
kind: Issuer
metadata:
name: le-example-http
name: le-whoami-http
namespace: whoami
spec:
acme:
email: veghag@gmail.com
# We use the staging server here for testing to avoid hitting
server: https://acme-staging-v02.api.letsencrypt.org/directory
server: https://acme-v02.api.letsencrypt.org/directory
privateKeySecretRef:
# if not existing, it will register a new account and stores it
name: example-issuer-account-key
name: whoami-issuer-account-key
solvers:
- http01:
# The ingressClass used to create the necessary ingress routes

View File

@@ -3,6 +3,7 @@ kind: Kustomization
namespace: whoami
resources:
- issuer.yaml
- ingress.yaml
- ingress-route.yaml
- traefik-forward-auth

View File

@@ -1,7 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: cert-manager
resources:
- https://github.com/cert-manager/cert-manager/releases/download/v1.11.0/cert-manager.yaml
- issuer.yaml
- https://github.com/cert-manager/cert-manager/releases/download/v1.11.0/cert-manager.yaml