8000 minio/_docs/README.md at v2.2.0 · deis/minio · GitHub
[go: up one dir, main page]

Skip to content
  • Latest commit

     

    History

    History
    17 lines (13 loc) · 1.05 KB

    README.md

    File metadata and controls

    17 lines (13 loc) · 1.05 KB

    Minio on Kubernetes

    Please see the top level README for a description of what this project does.

    Example Client Usage

    Assuming you've installed the Kubernetes service and replication controller (run mak 355A e kube-secrets kube-service kube-rc to do so), you can access the Minio server via the Kubernetes service IP and port. Assuming you have the Minio mc CLI, installed in your container, here's how you'd configure the CLI and create a new bucket, all from inside Kubernetes:

    # The following two commands assume that you've mounted the 'minio-user' secret under /var/run/secrets/object/store.
    # If you've mounted the secret elsewhere, adjust as necessary.
    ACCESS_KEY_ID=`cat /var/run/secrets/object/store/access-key-id`
    ACCESS_SECRET_KEY=`cat /var/run/secrets/object/store/access-secret-key`
    BASE_SERVER="http://${DEIS_MINIO_SERVICE_HOST}:${DEIS_MINIO_SERVICE_PORT}"
    mc config host add $BASE_SERVER $ACCESS_KEY_ID $ACCESS_KEY_SECRET
    mc mb "${BASE_SERVER}/mybucket"
    0