mirror of
https://github.com/optim-enterprises-bv/homelab.git
synced 2025-11-01 18:37:52 +00:00
fix(cert-manager): Trying to configure a service to use cert-manager
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
@@ -3,6 +3,7 @@ kind: Kustomization
|
||||
namespace: whoami
|
||||
|
||||
resources:
|
||||
- issuer.yaml
|
||||
- ingress.yaml
|
||||
- ingress-route.yaml
|
||||
- traefik-forward-auth
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user