mirror of
https://github.com/phfroidmont/self-hosting.git
synced 2025-12-25 05:36:59 +01:00
Manage letsencrypt certificates with cert-manager
This commit is contained in:
parent
c6f69f614c
commit
01b7e79e55
8 changed files with 137 additions and 8 deletions
27
roles/k8s-manifests/tasks/cert-manager.yml
Normal file
27
roles/k8s-manifests/tasks/cert-manager.yml
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
- name: cert-manager issuers
|
||||
k8s:
|
||||
state: present
|
||||
namespace: "{{item.1}}"
|
||||
definition:
|
||||
apiVersion: certmanager.k8s.io/v1alpha1
|
||||
kind: Issuer
|
||||
metadata:
|
||||
name: "{{item.0.name}}"
|
||||
spec:
|
||||
acme:
|
||||
# The ACME server URL
|
||||
server: "{{item.0.server}}"
|
||||
# Email address used for ACME registration
|
||||
email: "{{letsencrypt_email}}"
|
||||
# Name of a secret used to store the ACME account private key
|
||||
privateKeySecretRef:
|
||||
name: "{{item.0.name}}"
|
||||
# Enable HTTP01 validations
|
||||
http01: {}
|
||||
with_nested:
|
||||
- - name: letsencrypt-production
|
||||
server: https://acme-v02.api.letsencrypt.org/directory
|
||||
- name: letsencrypt-staging
|
||||
server: https://acme-staging-v02.api.letsencrypt.org/directory
|
||||
- - default
|
||||
- kube-system
|
||||
Loading…
Add table
Add a link
Reference in a new issue