clear part2

This commit is contained in:
2026-01-21 22:38:06 +01:00
parent 0027501e09
commit b125232ec0
9 changed files with 0 additions and 221 deletions

View File

@@ -1,30 +0,0 @@
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: ca-root-certificate
namespace: certificates-ops
annotations:
# Ce certificat doit être créé en premier pour générer le secret ca-root-secret
# utilisé par le ClusterIssuer ca-issuer
argocd.argoproj.io/sync-wave: "0"
spec:
# Ce certificat génère la CA root de votre PKI interne
secretName: ca-root-secret
issuerRef:
name: ca-root-issuer
kind: ClusterIssuer
commonName: "GK Domaine Internal CA Root"
dnsNames:
- "gkdomaine.local"
- "*.gkdomaine.local"
- "*.dev.gkdomaine.local"
- "*.rct.gkdomaine.local"
- "*.prd.gkdomaine.local"
isCA: true
duration: 87600h # 10 ans
usages:
- signing
- key encipherment
- cert sign
- crl sign

View File

@@ -1,10 +0,0 @@
apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
name: ca-root-issuer
annotations:
# Ce ClusterIssuer doit être créé en premier (avant le Certificate ca-root-certificate)
argocd.argoproj.io/sync-wave: "-1"
spec:
selfSigned: {}

View File

@@ -1,15 +0,0 @@
apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
name: ca-issuer
annotations:
# Ce ClusterIssuer dépend du secret ca-root-secret généré par ca-root-certificate
# ArgoCD créera d'abord le Certificate, puis ce ClusterIssuer
argocd.argoproj.io/sync-wave: "1"
spec:
ca:
secretName: ca-root-secret
# Le secret ca-root-secret contient la clé privée et le certificat de la CA root
# Il est généré par le Certificate ca-root-certificate ci-dessus
# IMPORTANT: Ce ClusterIssuer sera en erreur jusqu'à ce que le secret soit créé

View File

@@ -1,7 +0,0 @@
apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
name: selfsigned-issuer
spec:
selfSigned: {}

View File

@@ -1,16 +0,0 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: ca-root-certificate
namespace: certificates-ops
labels:
app: pki-internal
component: ca-root-cert
data:
# Le certificat CA root sera injecté ici par un script ou manuellement
# Ce ConfigMap peut être synchronisé vers les autres clusters pour que les clients
# puissent faire confiance aux certificats signés par cette CA
ca.crt: |
# Le certificat CA sera ajouté ici après la génération
# Pour l'extraire : kubectl get secret ca-root-secret -n certificates-ops -o jsonpath='{.data.tls\.crt}' | base64 -d

View File

@@ -1,17 +0,0 @@
apiVersion: cert-manager.io/v1
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:
name: ca-issuer # PKI interne pour domaine .local
kind: ClusterIssuer
dnsNames:
- harbor.gkdomaine.local

View File

@@ -1,16 +0,0 @@
apiVersion: cert-manager.io/v1
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:
name: ca-issuer
kind: ClusterIssuer
dnsNames:
- headlamp.dev.gkdomaine.local

View File

@@ -1,9 +0,0 @@
apiVersion: v1
kind: Namespace
metadata:
name: certificates-ops
labels:
name: certificates-ops
managed-by: argocd
purpose: tls-certificates