Add environment variables via Tenant Helm Chart - cniackz/public GitHub Wiki

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

  1. Make sure the env var was deployed:

Where MINIO_BROWSER_LOGIN_ANIMATION should be false:

Screenshot 2023-09-06 at 5 19 08 AM

  1. Then read at https://github.com/minio/minio/pull/17123

  2. Expose the service and verify that this actually works

  • If MINIO_BROWSER_LOGIN_ANIMATION is on, I can see the animation moving
  • If MINIO_BROWSER_LOGIN_ANIMATION is false or off, I can see the animation static
  • Also this should helps with the port-forward as far as I read it, good!.