-
Notifications
You must be signed in to change notification settings - Fork 0
Add environment variables via Tenant Helm Chart
Cesar Celis Hernandez edited this page Sep 6, 2023
·
9 revisions
To add environment variables via Tenant Helm Chart
- Download Tenant from: https://github.com/minio/operator/blob/master/helm-releases/tenant-5.0.7.tgz
- Uncompress Downloaded File from
tenant-5.0.7.tgz
to justtenant
-
tenant
should be just the folder - Locate
env
section in the values:
## 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"
-
Have a cluster ready
-
Have Operator already installed
-
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:
All pods should be running:
- Make sure the env var was deployed:
Where MINIO_BROWSER_LOGIN_ANIMATION should be false:
-
Then read at https://github.com/minio/minio/pull/17123
-
Expose the service and verify that this actually works
- If
MINIO_BROWSER_LOGIN_ANIMATION
ison
, I can see the animation moving - If
MINIO_BROWSER_LOGIN_ANIMATION
isfalse
oroff
, I can see the animation static - Also this should helps with the port-forward as far as I read it, good!.