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

31 lines
1.0 KiB
YAML

{{- /*
Envoy client leaf certificate.
Signed by Root CA directly.
Used for Envoy's mTLS client identity when connecting to Contour's xDS server.
*/}}
{{- if .Values.useCertManager }}
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: {{ printf "%s-envoy-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: envoy
spec:
secretName: envoycert
commonName: "envoy"
duration: {{ .Values.certManager.leafCerts.duration }}
renewBefore: {{ .Values.certManager.leafCerts.renewBefore }}
usages:
- client 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 }}