From 42980002bb2e19483d09b325704cc47a9b0d84e9 Mon Sep 17 00:00:00 2001 From: JJGadgets Date: Mon, 15 Apr 2024 18:36:58 +0800 Subject: [PATCH] fix(minio-nas): dashboard ingress HTTPS --- kube/deploy/core/storage/minio-nas/app/hr.yaml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/kube/deploy/core/storage/minio-nas/app/hr.yaml b/kube/deploy/core/storage/minio-nas/app/hr.yaml index 4294705e..76758aa6 100644 --- a/kube/deploy/core/storage/minio-nas/app/hr.yaml +++ b/kube/deploy/core/storage/minio-nas/app/hr.yaml @@ -65,12 +65,13 @@ spec: # envFrom: [secretRef: { name: "minio-nas-pg-superuser" }] service: main: + primary: false ports: http: port: 9001 - ssh: + s3: enabled: true - primary: false + primary: true controller: main type: LoadBalancer externalTrafficPolicy: Cluster @@ -88,6 +89,12 @@ spec: enabled: true primary: true className: "nginx-internal" + annotations: + nginx.ingress.kubernetes.io/backend-protocol: "HTTPS" + # https://github.com/kubernetes/ingress-nginx/issues/6728 + nginx.ingress.kubernetes.io/server-snippet: | + proxy_ssl_name ${APP_DNS_MINIO_NAS_S3}; + proxy_ssl_server_name on; hosts: - host: &host "${APP_DNS_MINIO_NAS}" paths: &paths