ci: add test-certificate to certificate retrieval

This commit is contained in:
Patryk Hegenberg 2025-05-25 13:24:36 +02:00
parent 6cacf38b2e
commit d0d3237349
3 changed files with 54 additions and 0 deletions

View file

@ -6,3 +6,4 @@ resources:
- helmrelease.yaml
- configmap-values.yaml
- letsencrypt-clusterissuer.yaml
- test-certificate.yaml

View file

@ -0,0 +1,13 @@
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: test-certificate
namespace: cert-manager
spec:
secretName: test-certificate-tls
issuerRef:
name: letsencrypt-dns
kind: ClusterIssuer
commonName: test.patanix.de
dnsNames:
- test.patanix.de

40
notes/test-certificate.md Normal file
View file

@ -0,0 +1,40 @@
# Test: Zertifikatsausstellung mit cert-manager und Hetzner DNS
## Test-Zertifikat anlegen
```bash
cat <<EOF > infrastructure/cert-manager/test-certificate.yaml
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: test-certificate
namespace: cert-manager
spec:
secretName: test-certificate-tls
issuerRef:
name: letsencrypt-dns
kind: ClusterIssuer
commonName: test.patanix.de
dnsNames:
- test.patanix.de
EOF
```
## Datei ins Repo legen und pushen
```bash
git add infrastructure/cert-manager/test-certificate.yaml
git commit -m "Add test certificate request for test.patanix.de"
git push origin main
```
## Status prüfen
```bash
kubectl -n cert-manager get certificate
kubectl -n cert-manager describe certificate test-certificate
kubectl -n cert-manager get secret test-certificate-tls
```
# Events und Fehlerdiagnose
```bash
kubectl -n cert-manager get events --sort-by=.metadata.creationTimestamp
kubectl -n cert-manager logs deploy/cert-manager
```