Add private key config to certificate template and values
This commit is contained in:
@@ -15,6 +15,11 @@ spec:
|
||||
{{- range .Values.api7.hosts }}
|
||||
- {{ . | quote }}
|
||||
{{- end }}
|
||||
privateKey:
|
||||
algorithm: RSA
|
||||
encoding: PKCS1
|
||||
size: 2048
|
||||
rotationPolicy: {{ .Values.api7.tls.privateKey.rotationPolicy | default "Always" }}
|
||||
usages:
|
||||
- digital signature
|
||||
- key encipherment
|
||||
@@ -22,4 +27,4 @@ spec:
|
||||
- client auth
|
||||
duration: 2160h # 90 days
|
||||
renewBefore: 720h # 30 days before expiry
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
@@ -242,6 +242,9 @@ api7:
|
||||
enabled: true
|
||||
issuer: cloudflare-acme-prod # ClusterIssuer name
|
||||
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
|
||||
secretName: "" # Name of existing TLS secret
|
||||
# Option 3: Provide certificates directly (not recommended for production)
|
||||
|
||||
Reference in New Issue
Block a user