aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Garrett <andrewgarrett@google.com>2023-06-06 05:37:27 +1000
committerGitHub <noreply@github.com>2023-06-05 12:37:27 -0700
commit19fd0f7d5b024cca540425d2ef762b70dec2ffc3 (patch)
tree37edd4070706180cc816bce24711ba5e2318d849
parent0bd4f5ea610ec76725db2951544ba607989df6c5 (diff)
downloadseaweedfs-19fd0f7d5b024cca540425d2ef762b70dec2ffc3.tar.xz
seaweedfs-19fd0f7d5b024cca540425d2ef762b70dec2ffc3.zip
Helm chart fixes: (#4539)
- Allow TLS and Host name to be specified in values.yaml
-rw-r--r--k8s/charts/seaweedfs/templates/ingress.yaml5
-rw-r--r--k8s/charts/seaweedfs/values.yaml3
2 files changed, 7 insertions, 1 deletions
diff --git a/k8s/charts/seaweedfs/templates/ingress.yaml b/k8s/charts/seaweedfs/templates/ingress.yaml
index f488ef67e..d14adf1f3 100644
--- a/k8s/charts/seaweedfs/templates/ingress.yaml
+++ b/k8s/charts/seaweedfs/templates/ingress.yaml
@@ -14,8 +14,11 @@ metadata:
{{ omit .Values.filer.ingress.annotations "kubernetes.io/ingress.class" | toYaml | nindent 4 }}
spec:
ingressClassName: {{ .Values.filer.ingress.className | quote }}
+ tls:
+ {{ .Values.filer.ingress.tls | default list | toYaml | nindent 6}}
rules:
- - http:
+ - host: {{ .Values.filer.ingress.host }}
+ http:
paths:
- path: /sw-filer/?(.*)
pathType: ImplementationSpecific
diff --git a/k8s/charts/seaweedfs/values.yaml b/k8s/charts/seaweedfs/values.yaml
index 2a6a136fc..4a9638d31 100644
--- a/k8s/charts/seaweedfs/values.yaml
+++ b/k8s/charts/seaweedfs/values.yaml
@@ -124,6 +124,7 @@ master:
ingress:
enabled: false
className: "nginx"
+ host: "master.seaweedfs.local"
annotations:
nginx.ingress.kubernetes.io/auth-type: "basic"
nginx.ingress.kubernetes.io/auth-secret: "default/ingress-basic-auth-secret"
@@ -371,7 +372,9 @@ filer:
ingress:
enabled: false
className: "nginx"
+ host: "seaweedfs.cluster.local"
annotations:
+ nginx.ingress.kubernetes.io/backend-protocol: GRPC
nginx.ingress.kubernetes.io/auth-type: "basic"
nginx.ingress.kubernetes.io/auth-secret: "default/ingress-basic-auth-secret"
nginx.ingress.kubernetes.io/auth-realm: 'Authentication Required - SW-Filer'