Files
devops-infra-helm-charts-gcp/helm-templates/contour-v1.33.3/templates/cert-manager/contour-cert.yaml
T
2026-08-26 03:39:42 +05:30

37 lines
1.4 KiB
YAML

{{- /*
Contour server leaf certificate.
Signed by Root CA directly.
Used for Contour's xDS gRPC server — Envoy connects to this.
*/}}
{{- if .Values.useCertManager }}
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: {{ printf "%s-contour-cert" (include "common.names.fullname" .) }}
namespace: {{ include "common.names.namespace" . | quote }}
labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
app.kubernetes.io/component: contour
spec:
secretName: contourcert
commonName: "contour"
dnsNames:
- "contour"
- {{ include "common.names.fullname" . | quote }}
- {{ printf "%s-contour" (include "common.names.fullname" .) | quote }}
- {{ printf "%s.%s.svc" (include "common.names.fullname" .) (include "common.names.namespace" .) | quote }}
- {{ printf "%s.%s.svc.cluster.local" (include "common.names.fullname" .) (include "common.names.namespace" .) | quote }}
duration: {{ .Values.certManager.leafCerts.duration }}
renewBefore: {{ .Values.certManager.leafCerts.renewBefore }}
usages:
- server auth
- digital signature
- key encipherment
privateKey:
algorithm: {{ .Values.certManager.leafCerts.algorithm }}
size: {{ .Values.certManager.leafCerts.size }}
issuerRef:
name: {{ printf "%s-root-ca-issuer" (include "common.names.fullname" .) }}
kind: Issuer
{{- end }}