Skip to content

Commit

Permalink
attempt to add tls cert for ingress configured subdomain
Browse files Browse the repository at this point in the history
  • Loading branch information
Saturn-V committed Oct 19, 2023
1 parent 5133d85 commit 01742bc
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 0 deletions.
11 changes: 11 additions & 0 deletions helm/service/templates/cert.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: sammwise-tls-prod
spec:
secretName: sammwise-tls-prod
issuerRef:
name: sammwise-issuer
commonName: sammwise.vzxy.net
dnsNames:
- sammwise.vzxy.net
24 changes: 24 additions & 0 deletions helm/service/templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: sammwise-ingress
annotations:
kubernetes.io/ingress.class: "traefik"
cert-manager.io/issuer: "sammwise-issuer"
traefik.ingress.kubernetes.io/redirect-entry-point: "https"
spec:
rules:
- host: sammwise.vzxy.net
http:
paths:
- backend:
service:
name: sammwise
port:
number: 80
path: /
pathType: Prefix
tls:
- hosts:
- sammwise.vzxy.net
secretName: sammwise-tls-prod
14 changes: 14 additions & 0 deletions helm/service/templates/issuer.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: cert-manager.io/v1
kind: Issuer
metadata:
name: sammwise-issuer
spec:
acme:
server: https://acme-staging-v02.api.letsencrypt.org/directory
email: [email protected]
privateKeySecretRef:
name: sammwise-issuer-private-key
solvers:
- http01:
ingress:
class: traefik

0 comments on commit 01742bc

Please sign in to comment.