Add private key config to certificate template and values
All checks were successful
Helm Chart Build / lint-only (push) Has been skipped
Helm Chart Build / build-helm (push) Successful in 8s
Build and Deploy / build-api (push) Successful in 50s
Build and Deploy / build-web (push) Successful in 1m4s

This commit is contained in:
d.viti
2025-10-08 13:19:57 +02:00
parent 0935010f89
commit c0832ff59b
2 changed files with 9 additions and 1 deletions

View File

@@ -15,6 +15,11 @@ spec:
{{- range .Values.api7.hosts }} {{- range .Values.api7.hosts }}
- {{ . | quote }} - {{ . | quote }}
{{- end }} {{- end }}
privateKey:
algorithm: RSA
encoding: PKCS1
size: 2048
rotationPolicy: {{ .Values.api7.tls.privateKey.rotationPolicy | default "Always" }}
usages: usages:
- digital signature - digital signature
- key encipherment - key encipherment

View File

@@ -242,6 +242,9 @@ api7:
enabled: true enabled: true
issuer: cloudflare-acme-prod # ClusterIssuer name issuer: cloudflare-acme-prod # ClusterIssuer name
issuerKind: ClusterIssuer # or Issuer issuerKind: ClusterIssuer # or Issuer
# Private key configuration
privateKey:
rotationPolicy: Always # Always or Never (cert-manager >= v1.18.0 default is Always)
# Option 2: Use existing secret # Option 2: Use existing secret
secretName: "" # Name of existing TLS secret secretName: "" # Name of existing TLS secret
# Option 3: Provide certificates directly (not recommended for production) # Option 3: Provide certificates directly (not recommended for production)