mirror of
https://github.com/optim-enterprises-bv/homelab.git
synced 2025-11-02 19:08:03 +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
|
name: whoami
|
||||||
namespace: whoami
|
namespace: whoami
|
||||||
annotations:
|
annotations:
|
||||||
cert-manager.io/issuer: "le-example-http"
|
cert-manager.io/issuer: "le-whoami-http"
|
||||||
spec:
|
spec:
|
||||||
tls:
|
tls:
|
||||||
- hosts:
|
- hosts:
|
||||||
- whoami.ratatoskr.myddns.rocks
|
- cert.stonegarden.dev
|
||||||
secretName: tls-whoami-ingress-http
|
secretName: tls-whoami-ingress-http
|
||||||
rules:
|
rules:
|
||||||
- host: whoami.ratatoskr.myddns.rocks
|
- host: cert.stonegarden.dev
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
@@ -20,4 +20,4 @@ spec:
|
|||||||
service:
|
service:
|
||||||
name: whoami
|
name: whoami
|
||||||
port:
|
port:
|
||||||
name: web
|
number: 80
|
||||||
@@ -1,16 +1,15 @@
|
|||||||
apiVersion: cert-manager.io/v1
|
apiVersion: cert-manager.io/v1
|
||||||
kind: Issuer
|
kind: Issuer
|
||||||
metadata:
|
metadata:
|
||||||
name: le-example-http
|
name: le-whoami-http
|
||||||
namespace: whoami
|
namespace: whoami
|
||||||
spec:
|
spec:
|
||||||
acme:
|
acme:
|
||||||
email: veghag@gmail.com
|
email: veghag@gmail.com
|
||||||
# We use the staging server here for testing to avoid hitting
|
server: https://acme-v02.api.letsencrypt.org/directory
|
||||||
server: https://acme-staging-v02.api.letsencrypt.org/directory
|
|
||||||
privateKeySecretRef:
|
privateKeySecretRef:
|
||||||
# if not existing, it will register a new account and stores it
|
# if not existing, it will register a new account and stores it
|
||||||
name: example-issuer-account-key
|
name: whoami-issuer-account-key
|
||||||
solvers:
|
solvers:
|
||||||
- http01:
|
- http01:
|
||||||
# The ingressClass used to create the necessary ingress routes
|
# The ingressClass used to create the necessary ingress routes
|
||||||
@@ -3,6 +3,7 @@ kind: Kustomization
|
|||||||
namespace: whoami
|
namespace: whoami
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
|
- issuer.yaml
|
||||||
- ingress.yaml
|
- ingress.yaml
|
||||||
- ingress-route.yaml
|
- ingress-route.yaml
|
||||||
- traefik-forward-auth
|
- traefik-forward-auth
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
namespace: cert-manager
|
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
- https://github.com/cert-manager/cert-manager/releases/download/v1.11.0/cert-manager.yaml
|
- https://github.com/cert-manager/cert-manager/releases/download/v1.11.0/cert-manager.yaml
|
||||||
- issuer.yaml
|
|
||||||
Reference in New Issue
Block a user