SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
Helm use external certificates (#4913)
Yuval Yacobyc6991dfd5fb1
diff --git a/k8s/charts/seaweedfs/templates/ca-cert.yaml b/k8s/charts/seaweedfs/templates/ca-cert.yamlindex c1d432d312..fc002aebe3 100644--- a/k8s/charts/seaweedfs/templates/ca-cert.yaml+++ b/k8s/charts/seaweedfs/templates/ca-cert.yaml@@ -1,4 +1,4 @@-{{- if .Values.global.enableSecurity }}+{{- if and .Values.global.enableSecurity (not .Values.certificates.externalCertificates.enabled)}}apiVersion: cert-manager.io/v1{{ if .Values.global.certificates.alphacrds }}alpha1{{ end }}kind: Certificatemetadata:diff --git a/k8s/charts/seaweedfs/templates/cert-caissuer.yaml b/k8s/charts/seaweedfs/templates/cert-caissuer.yamlindex 4c26930438..72de126e1c 100644--- a/k8s/charts/seaweedfs/templates/cert-caissuer.yaml+++ b/k8s/charts/seaweedfs/templates/cert-caissuer.yaml@@ -1,4 +1,4 @@-{{- if .Values.global.enableSecurity }}+{{- if and .Values.global.enableSecurity (not .Values.certificates.externalCertificates.enabled)}}apiVersion: cert-manager.io/v1{{ if .Values.global.certificates.alphacrds }}alpha1{{ end }}kind: Issuermetadata:diff --git a/k8s/charts/seaweedfs/templates/cert-clusterissuer.yaml b/k8s/charts/seaweedfs/templates/cert-clusterissuer.yamlindex c46aa47565..42e080fd65 100644--- a/k8s/charts/seaweedfs/templates/cert-clusterissuer.yaml+++ b/k8s/charts/seaweedfs/templates/cert-clusterissuer.yaml@@ -1,4 +1,4 @@-{{- if .Values.global.enableSecurity }}+{{- if and .Values.global.enableSecurity (not .Values.certificates.externalCertificates.enabled)}}apiVersion: cert-manager.io/v1{{ if .Values.global.certificates.alphacrds }}alpha1{{ end }}kind: ClusterIssuermetadata:diff --git a/k8s/charts/seaweedfs/templates/client-cert.yaml b/k8s/charts/seaweedfs/templates/client-cert.yamlindex 5904a00b6d..bda132a029 100644--- a/k8s/charts/seaweedfs/templates/client-cert.yaml+++ b/k8s/charts/seaweedfs/templates/client-cert.yaml@@ -1,4 +1,4 @@-{{- if .Values.global.enableSecurity }}+{{- if and .Values.global.enableSecurity (not .Values.certificates.externalCertificates.enabled)}}apiVersion: cert-manager.io/v1{{ if .Values.global.certificates.alphacrds }}alpha1{{ end }}kind: Certificatemetadata:diff --git a/k8s/charts/seaweedfs/templates/filer-cert.yaml b/k8s/charts/seaweedfs/templates/filer-cert.yamlindex 8b5dbe257b..c17815af2f 100644--- a/k8s/charts/seaweedfs/templates/filer-cert.yaml+++ b/k8s/charts/seaweedfs/templates/filer-cert.yaml@@ -1,4 +1,4 @@-{{- if .Values.global.enableSecurity }}+{{- if and .Values.global.enableSecurity (not .Values.certificates.externalCertificates.enabled)}}apiVersion: cert-manager.io/v1{{ if .Values.global.certificates.alphacrds }}alpha1{{ end }}kind: Certificatemetadata:diff --git a/k8s/charts/seaweedfs/templates/master-cert.yaml b/k8s/charts/seaweedfs/templates/master-cert.yamlindex bb935eedb6..47dcaacd30 100644--- a/k8s/charts/seaweedfs/templates/master-cert.yaml+++ b/k8s/charts/seaweedfs/templates/master-cert.yaml@@ -1,4 +1,4 @@-{{- if .Values.global.enableSecurity }}+{{- if and .Values.global.enableSecurity (not .Values.certificates.externalCertificates.enabled)}}apiVersion: cert-manager.io/v1{{ if .Values.global.certificates.alphacrds }}alpha1{{ end }}kind: Certificatemetadata:diff --git a/k8s/charts/seaweedfs/templates/volume-cert.yaml b/k8s/charts/seaweedfs/templates/volume-cert.yamlindex c6b333f7c0..4df63db2cc 100644--- a/k8s/charts/seaweedfs/templates/volume-cert.yaml+++ b/k8s/charts/seaweedfs/templates/volume-cert.yaml@@ -1,4 +1,4 @@-{{- if .Values.global.enableSecurity }}+{{- if and .Values.global.enableSecurity (not .Values.certificates.externalCertificates.enabled)}}apiVersion: cert-manager.io/v1{{ if .Values.global.certificates.alphacrds }}alpha1{{ end }}kind: Certificatemetadata:diff --git a/k8s/charts/seaweedfs/values.yaml b/k8s/charts/seaweedfs/values.yamlindex 9e12a6e055..a83ceac467 100644--- a/k8s/charts/seaweedfs/values.yaml+++ b/k8s/charts/seaweedfs/values.yaml@@ -640,3 +640,8 @@ certificates:keySize: 2048duration: 2160h # 90drenewBefore: 360h # 15d+ externalCertificates:+ # This will avoid the need to use cert-manager and will rely on providing your own external certificates and CA+ # you will need to store your provided certificates in the secret read by the different services:+ # seaweedfs-master-cert, seaweedfs-filer-cert, etc. Can see any statefulset definition to see secret names+ enabled: false