Skip to content

Add environment variables via Tenant Helm Chart

Cesar Celis Hernandez edited this page Sep 6, 2023 · 9 revisions

Objective:

To add environment variables via Tenant Helm Chart

Pre-Steps:

## MinIO Tenant Definition
tenant:
  ## Add environment variables to be set in MinIO container (https://github.com/minio/minio/tree/master/docs/config)
  env: [ ]
  • Change env to:
## MinIO Tenant Definition
tenant:
  env:
  - name: MINIO_BROWSER_LOGIN_ANIMATION
    value: "false"

Steps:

  1. Have a cluster ready

  2. Have Operator already installed

  3. Deploy Tenant with Helm Chart from pre-steps:

cd ~/Downloads # Position yourself where the tenant folder with modified values is located

### Then deploy the tenant
helm install \
  --namespace tenant-ns \
  --create-namespace \
  tenant-ns ./tenant

You should see:

$ helm install \
>   --namespace tenant-ns \
>   --create-namespace \
>   tenant-ns ./tenant
NAME: tenant-ns
LAST DEPLOYED: Wed Sep  6 05:15:30 2023
NAMESPACE: tenant-ns
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
To connect to the myminio tenant if it doesn't have a service exposed, you can port-forward to it by running:

  kubectl --namespace tenant-ns port-forward svc/myminio-console 9443:9443

  Then visit the MinIO Console at https://127.0.0.1:9443

Wait for couple of minutes and in the Operator UI, you should see:

Screenshot 2023-09-06 at 5 17 08 AM

All pods should be running:

Screenshot 2023-09-06 at 5 17 39 AM

Clone this wiki locally