Skip to content

Instantly share code, notes, and snippets.

@HariSekhon
Created May 15, 2024 20:29
Show Gist options
  • Save HariSekhon/85d9d93a1de5585830844391a75c974b to your computer and use it in GitHub Desktop.
Save HariSekhon/85d9d93a1de5585830844391a75c974b to your computer and use it in GitHub Desktop.
minio.md from HariSekhon/Knowledge-Base repo: https://github.com/HariSekhon/Knowlege-Base

MinIO

S3 open source server software.

Useful for testing S3 access too:

Command Line

kubectl exec -ti -n my-namespace minio-cli --container minio-cli -- /bin/bash

This will confirm:

mc alias set my-alias http://minio.my-namespace.svc.cluster.local my-user my-password

output:

Added `my-alias` successfully.

If there is a problem, it will refuse to create the alias:

mc: <ERROR> Unable to initialize new alias from the provided credentials. Get "http://minio.my-namespace.svc.cluster.local:9000/probe-bsign-..../?location=": dial tcp x.x.x.x:9000: i/o timeout.

Above it is using the wrong port (the pod uses 9000 but the address is pointing to a service using port 80)

mc ls my-alias/my-bucket/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment