k8s let's encrypt issuer and cert creation
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
---
|
||||
#https://cert-manager.io/docs/configuration/acme/#creating-a-basic-acme-issuer
|
||||
|
||||
apiVersion: cert-manager.io/v1
|
||||
kind: ClusterIssuer
|
||||
metadata:
|
||||
name: letsencrypt-production
|
||||
spec:
|
||||
acme:
|
||||
email: r_morgan@sympatico.ca
|
||||
server: https://acme-v02.api.letsencrypt.org/directory
|
||||
# disableAccountKeyGeneration: true
|
||||
privateKeySecretRef:
|
||||
# Secret resource that will be used to store the account's private key.
|
||||
name: letsencrypt-production-issuer-account-key
|
||||
# Add a single challenge solver, HTTP01
|
||||
solvers:
|
||||
- http01:
|
||||
ingress:
|
||||
class: traefik
|
||||
@@ -0,0 +1,20 @@
|
||||
---
|
||||
#https://cert-manager.io/docs/configuration/acme/#creating-a-basic-acme-issuer
|
||||
|
||||
apiVersion: cert-manager.io/v1
|
||||
kind: ClusterIssuer
|
||||
metadata:
|
||||
name: letsencrypt-staging
|
||||
spec:
|
||||
acme:
|
||||
email: r_morgan@sympatico.ca
|
||||
server: https://acme-staging-v02.api.letsencrypt.org/directory
|
||||
# disableAccountKeyGeneration: true
|
||||
privateKeySecretRef:
|
||||
# Secret resource that will be used to store the account's private key.
|
||||
name: letsencrypt-staging-issuer-account-key
|
||||
# Add a single challenge solver, HTTP01
|
||||
solvers:
|
||||
- http01:
|
||||
ingress:
|
||||
class: traefik
|
||||
@@ -0,0 +1,32 @@
|
||||
---
|
||||
apiVersion: cert-manager.io/v1
|
||||
kind: Certificate
|
||||
metadata:
|
||||
name: xai-corp
|
||||
namespace: default
|
||||
spec:
|
||||
# Secret names are always required.
|
||||
secretName: xai-corp-staging-tls
|
||||
issuerRef:
|
||||
name: letsencrypt-production
|
||||
kind: ClusterIssuer
|
||||
commonName: xai-corp.net
|
||||
dnsNames:
|
||||
- xai-corp.net
|
||||
- git.xai-corp.net
|
||||
- tunedb.xai-corp.net
|
||||
- www.xai-corp.net
|
||||
- xaibox.xai-corp.net
|
||||
- sql.xai-corp.net
|
||||
- cik.xai-corp.net
|
||||
acme:
|
||||
config:
|
||||
- http01:
|
||||
ingressClass: traefik
|
||||
domains:
|
||||
- xai-corp.net
|
||||
# - http01:
|
||||
# ingress: certs-ingress
|
||||
# domains:
|
||||
# - hello.xai-corp.net
|
||||
# - sql.xai-corp.net
|
||||
@@ -0,0 +1,28 @@
|
||||
---
|
||||
apiVersion: cert-manager.io/v1
|
||||
kind: Certificate
|
||||
metadata:
|
||||
name: xai-corp
|
||||
namespace: default
|
||||
spec:
|
||||
# Secret names are always required.
|
||||
secretName: xai-corp-staging-tls
|
||||
issuerRef:
|
||||
name: letsencrypt-staging
|
||||
kind: ClusterIssuer
|
||||
commonName: xai-corp.net
|
||||
dnsNames:
|
||||
- xai-corp.net
|
||||
- www.xai-corp.net
|
||||
- sql.xai-corp.net
|
||||
acme:
|
||||
config:
|
||||
- http01:
|
||||
ingressClass: traefik
|
||||
domains:
|
||||
- xai-corp.net
|
||||
# - http01:
|
||||
# ingress: certs-ingress
|
||||
# domains:
|
||||
# - hello.xai-corp.net
|
||||
# - sql.xai-corp.net
|
||||
Reference in New Issue
Block a user