This commit is contained in:
2026-01-21 22:20:14 +01:00
parent 3af0d0b170
commit 39853b7882
4 changed files with 42 additions and 5 deletions

View File

@@ -30,23 +30,46 @@ Ce chart gère les certificats TLS générés par cert-manager dans le cluster O
Ajoutez un fichier dans le dossier de l'application (ex: `templates/homarr/`) :
#### Pour un site public (`.fr`) - Let's Encrypt
```yaml
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: <app>-<env>-tls
namespace: <app>-<env> # Le namespace où sera utilisé le secret TLS
namespace: certificates-ops
spec:
secretName: <app>-<env>-tls
issuerRef:
name: letsencrypt-prod # Pour sites publics (.fr)
# OU
# name: ca-issuer # Pour sites internes (.local)
name: letsencrypt-prod
kind: ClusterIssuer
dnsNames:
- <domain>
- <domain>.fr
```
#### Pour un site interne (`.local`) - PKI Interne
```yaml
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: <app>-<env>-tls
namespace: certificates-ops
annotations:
# IMPORTANT: Les certificats utilisant ca-issuer doivent être créés
# après que la PKI soit initialisée (sync-wave "2")
argocd.argoproj.io/sync-wave: "2"
spec:
secretName: <app>-<env>-tls
issuerRef:
name: ca-issuer # PKI interne pour domaines .local
kind: ClusterIssuer
dnsNames:
- <domain>.local
```
**⚠️ Important pour les certificats internes** : Ajoutez toujours l'annotation `argocd.argoproj.io/sync-wave: "2"` pour garantir que la PKI est initialisée avant la création du certificat.
### Pour une nouvelle application
1. Créez un nouveau dossier dans `templates/` : `templates/<app>/`

View File

@@ -3,6 +3,10 @@ kind: Certificate
metadata:
name: harbor-ops-tls
namespace: certificates-ops
annotations:
# Ce certificat dépend de ca-issuer qui doit être prêt en premier
# ca-issuer a sync-wave "1", donc ce certificat doit être créé après
argocd.argoproj.io/sync-wave: "2"
spec:
secretName: harbor-ops-tls
issuerRef:

View File

@@ -3,6 +3,10 @@ kind: Certificate
metadata:
name: headlamp-dev-tls
namespace: certificates-ops
annotations:
# Ce certificat dépend de ca-issuer qui doit être prêt en premier
# ca-issuer a sync-wave "1", donc ce certificat doit être créé après
argocd.argoproj.io/sync-wave: "2"
spec:
secretName: headlamp-dev-tls
issuerRef: