ca-cert.yaml 789 B

12345678910111213141516171819
  1. {{- if and .Values.global.enableSecurity (not .Values.certificates.externalCertificates.enabled)}}
  2. apiVersion: cert-manager.io/v1{{ if .Values.global.certificates.alphacrds }}alpha1{{ end }}
  3. kind: Certificate
  4. metadata:
  5. name: {{ template "seaweedfs.name" . }}-ca-cert
  6. namespace: {{ .Release.Namespace }}
  7. labels:
  8. app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
  9. helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
  10. app.kubernetes.io/managed-by: {{ .Release.Service }}
  11. app.kubernetes.io/instance: {{ .Release.Name }}
  12. spec:
  13. secretName: {{ template "seaweedfs.name" . }}-ca-cert
  14. commonName: "{{ template "seaweedfs.name" . }}-root-ca"
  15. isCA: true
  16. issuerRef:
  17. name: {{ template "seaweedfs.name" . }}-issuer
  18. kind: Issuer
  19. {{- end }}