mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-12 16:16:55 +00:00
fix(gateway): api flag https redirect (#5960)
* fix: add helm toggle to disable the http to https redirect * docs: add documentation about new parameter
This commit is contained in:
@@ -268,6 +268,7 @@ uer. `ClusterIssuer` or `Issuer`. |
|
||||
| topologySpreadConstraints.constraints | list | `[]` | Raw `spec.template.spec.topologySpreadConstraints` entries applied to the distributed StatefulSet when enabled. |
|
||||
| gatewayApi.enabled | bool | `false` | To enable/disable gateway api support. |
|
||||
| gatewayApi.gatewayClass | string | `traefik` | Gateway class implementation. |
|
||||
| gatewayApi.httpToHttpsRedirect | bool | `true` | To enable/disable the redirect httproute. |
|
||||
| gatewayApi.listeners.http.name | string | `web` | Gateway API http listener name. |
|
||||
| gatewayApi.listeners.http.port| int | `8000` | Gateway API http listener port. |
|
||||
| gatewayApi.listeners.https.name | string | `websecure` | Gateway API https listener name. |
|
||||
|
||||
@@ -37,7 +37,7 @@ spec:
|
||||
- name: {{ include "rustfs.fullname" $ }}-svc
|
||||
port: {{ .Values.service.console.port }}
|
||||
{{- end }}
|
||||
|
||||
{{- if .Values.gatewayApi.httpToHttpsRedirect }}
|
||||
---
|
||||
apiVersion: gateway.networking.k8s.io/v1
|
||||
kind: HTTPRoute
|
||||
@@ -62,4 +62,5 @@ spec:
|
||||
requestRedirect:
|
||||
scheme: https
|
||||
statusCode: 301
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
@@ -370,6 +370,7 @@ gatewayApi:
|
||||
name: websecure
|
||||
port: 8443
|
||||
hostname: example.rustfs.com
|
||||
httpToHttpsRedirect: true
|
||||
existingGateway:
|
||||
name: ""
|
||||
namespace: ""
|
||||
|
||||
Reference in New Issue
Block a user