mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-21 03:46:37 +00:00
feat: add support for existing gateways in helm chart (#1469)
Co-authored-by: loverustfs <hello@rustfs.com>
This commit is contained in:
@@ -114,6 +114,8 @@ RustFS helm chart supports **standalone and distributed mode**. For standalone m
|
|||||||
| gatewayApi.gatewayClass | string | `traefik` | Gateway class implementation. |
|
| gatewayApi.gatewayClass | string | `traefik` | Gateway class implementation. |
|
||||||
| gatewayApi.hostname | string | Hostname to access RustFS via gateway api. |
|
| gatewayApi.hostname | string | Hostname to access RustFS via gateway api. |
|
||||||
| gatewayApi.secretName | string | Secret tls to via RustFS using HTTPS. |
|
| gatewayApi.secretName | string | Secret tls to via RustFS using HTTPS. |
|
||||||
|
| gatewayApi.existingGateway.name | string | `""` | The existing gateway name, instead of creating a new one. |
|
||||||
|
| gatewayApi.existingGateway.namespace | string | `""` | The namespace of the existing gateway, if not the local namespace. |
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{{- if .Values.gatewayApi.enabled }}
|
{{- if and .Values.gatewayApi.enabled (empty .Values.gatewayApi.existingGateway.name) }}
|
||||||
apiVersion: gateway.networking.k8s.io/v1
|
apiVersion: gateway.networking.k8s.io/v1
|
||||||
kind: Gateway
|
kind: Gateway
|
||||||
metadata:
|
metadata:
|
||||||
|
|||||||
@@ -5,7 +5,14 @@ metadata:
|
|||||||
name: {{ include "rustfs.fullname" . }}-route
|
name: {{ include "rustfs.fullname" . }}-route
|
||||||
spec:
|
spec:
|
||||||
parentRefs:
|
parentRefs:
|
||||||
|
{{- if .Values.gatewayApi.existingGateway.name }}
|
||||||
|
- name: {{ .Values.gatewayApi.existingGateway.name }}
|
||||||
|
{{- if .Values.gatewayApi.existingGateway.namespace }}
|
||||||
|
namespace: {{ .Values.gatewayApi.existingGateway.namespace }}
|
||||||
|
{{- end }}
|
||||||
|
{{- else }}
|
||||||
- name: {{ include "rustfs.fullname" . }}-gateway
|
- name: {{ include "rustfs.fullname" . }}-gateway
|
||||||
|
{{- end }}
|
||||||
hostnames:
|
hostnames:
|
||||||
- {{ .Values.gatewayApi.hostname }}
|
- {{ .Values.gatewayApi.hostname }}
|
||||||
rules:
|
rules:
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{{- if and (or .Values.gatewayApi.enabled .Values.ingress.tls.enabled) (not .Values.ingress.tls.certManager.enabled) }}
|
{{- if and (or .Values.gatewayApi.enabled .Values.ingress.tls.enabled) (not (or .Values.ingress.tls.certManager.enabled .Values.gatewayApi.existingGateway.name)) }}
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Secret
|
kind: Secret
|
||||||
metadata:
|
metadata:
|
||||||
|
|||||||
@@ -140,6 +140,9 @@ gatewayApi:
|
|||||||
gatewayClass: traefik
|
gatewayClass: traefik
|
||||||
hostname: example.rustfs.com
|
hostname: example.rustfs.com
|
||||||
secretName: secret-tls
|
secretName: secret-tls
|
||||||
|
existingGateway:
|
||||||
|
name: ""
|
||||||
|
namespace: ""
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
# We usually recommend not to specify default resources and to leave this as a conscious
|
# We usually recommend not to specify default resources and to leave this as a conscious
|
||||||
|
|||||||
Reference in New Issue
Block a user