How can I see all the files stored in the embedded MinIO (Object Storage)?

Modified on Fri, 17 Nov, 2023 at 2:24 PM

1. Get the username and password:

a. Username:

kubectl get secret file-object-storage-app-chart-minio  -o jsonpath="{.data.rootUser}" | base64 -d

b. Password:

kubectl get secret file-object-storage-app-chart-minio  -o jsonpath="{.data.rootPassword}" | base64 -d

2. Port forward MinIO:

kubectl port-forward service/file-object-storage-app-chart-minio-console 9001:9001

3.  Access MinIO UI at localhost:9001 in the browser and log in with the credentials above. 

The browser must be in the same network as the Kubernetes host. Otherwise, you can port forward the Kubernetes host from your local machine. Do the same steps above, then:

1. Get MinIO Kubernetes internal IP:

kubectl get service file-object-storage-app-chart-minio-console -o jsonpath='{.spec.clusterIP}'

2. Open a terminal in your local host machine and do a reverse port-forward to the MinIO internal IP:

ssh {{user}}@{{kubernetes-host-ip}} -L 9001:{{service-ip}}:9001

a. {{user}} = the same user name as the host running the Kubernetes cluster

b. {{kubernetes-host-ip}} = the Kubernetes host IP

c. {{service-ip}} = the result of the 1. command.

3. Ensure the port-forward command is still running (item 2.). Now, you will be able to access localhost:9001 from your local machine.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article