Browse Source

Helm Charts: add certificate duration and renewBefore options

Signed-off-by: ohotnikov.ivan <ohotnikov.ivan@e-queo.net>
pull/7563/head
ohotnikov.ivan 6 days ago
parent
commit
427b2c4bc5
  1. 6
      k8s/charts/seaweedfs/templates/cert/ca-cert.yaml
  2. 2
      k8s/charts/seaweedfs/values.yaml

6
k8s/charts/seaweedfs/templates/cert/ca-cert.yaml

@ -13,6 +13,12 @@ spec:
secretName: {{ template "seaweedfs.name" . }}-ca-cert
commonName: "{{ template "seaweedfs.name" . }}-root-ca"
isCA: true
{{- if .Values.certificates.duration }}
duration: {{ .Values.certificates.duration }}
{{- end }}
{{- if .Values.certificates.renewBefore }}
renewBefore: {{ .Values.certificates.renewBefore }}
{{- end }}
issuerRef:
name: {{ template "seaweedfs.name" . }}-issuer
kind: Issuer

2
k8s/charts/seaweedfs/values.yaml

@ -22,6 +22,8 @@ global:
serviceAccountName: "seaweedfs"
automountServiceAccountToken: true
certificates:
duration: 87600h
renewBefore: 720h
alphacrds: false
monitoring:
enabled: false

Loading…
Cancel
Save