BRIX On-Premises > Prepare infrastructure > Load balancer / S3 proxying in Kubernetes via S3-Gateway

S3 proxying in Kubernetes via S3-Gateway

Proxying traffic to S3 storage is one of the steps for preparing the BRIX infrastructure. The S3‑Gateway tool can be used for this purpose.

It provides access to the S3 storage deployed inside or outside the Kubernetes cluster via a single entry point — domain (FQDN) or IP address for BRIX.

S3-Gateway installation consists of four steps:

  1. Download the Helm chart and configuration file.
  2. Fill in the configuration file.
  3. Install the S3 Gateway chart using Helm in the Kubernetes cluster.
  4. Connect to S3.

Step 1: Download the Helm chart and configuration file

To install via the internet, obtain the values-s3gateway.yaml configuration file by executing the following command:

helm repo add elma365 https://charts.elma365.tech
helm repo update
helm show values elma365/s3gateway > values-s3gateway.yaml

Obtaining the configuration file for installation in a closed-loop environment without internet access

Step 2: Fill in the configuration file

Fill in the configuration file values-s3gateway.yaml for the S3 Gateway installation:

  1. In the ingress.hostname parameter, specify the domain (FQDN) or IP address through which the BRIX application is accessible.
  2. In the ingress.path parameter, specify the name of the S3 bucket in which the BRIX application stores files.
    The name of the bucket in S3 must correspond to the s3elma365 format.

Начало примера

Example:

  • s3elma365.
  • s3elma365-dev.
  • s3elma365-prod.

конец примера

  1. The following changes should be made to the configuration file if the BRIX application web‑interface is accessible via HTTPS:
  • Specify the domain (FQDN) in the ingress.hostname parameter.
  • Enable TLS support by setting the value to true in the ingress.tls parameter.
  • Uncomment the parameters in the ingress.extraTls section.
  • For the ingress.extraTls.hosts parameter, specify the domain (FQDN) through which the BRIX application is accessible.
  • For the ingress.extraTls.secretName parameter, specify the name of the TLS type secret for the domain specified in ingress.extraTls.hosts.
  1. If high availability is required, specify the desired number of replicas in the replicaCount parameter.
  2. The configuration parameter specifies the HAProxy configuration with which it will run in the Kubernetes cluster. In the backend s3_main section of the HAProxy configuration, specify the list of S3 servers to which user traffic should be redirected.

How to proxy the user traffic in the S3 MinIO storage using the elma365 dbs chart without SSL support in the Kubernetes cluster

 

How to proxy the user traffic in the S3 MinIO storage with SSL support

  1. If you install S3‑Gateway in an isolated environment without internet access, fill out the parameters for connecting to the private registry.

How to fill out the connection parameters for the private registry

Step 3: Install the S3 Gateway chart using Helm in the Kubernetes cluster

Perform the installation of the S3 Gateway chart in the s3gateway namespace.

Run the following command for online installation:

helm upgrade --install s3gateway elma365/s3gateway -f values-s3gateway.yaml -n s3gateway --create-namespace

Run the following command for offline installation without internet access:

helm upgrade --install s3gateway ./s3gateway -f values-s3gateway.yaml -n s3gateway --create-namespace

Step 4: Connect to S3

Parameters for connecting to S3:

  • address: specify elma365-server.your_domain.
  • bucket, region, access key ID, secret access key, secret access key and enable SSL: specify values according to the parameters of the S3 storage for which proxying is configured.

начало внимание

Infrastructure preparation occurs before the installation of the BRIX application. If the S3-Gateway chart has been installed, don't forget to change the connection address to S3 (elma365.s3.backend.address) in the BRIX application settings. For more details, refer to Modify BRIX Enterprise parameters.

конец внимание