minio

by Zilliz

Helm chartv8.0.21App master

High Performance, Kubernetes Native Object Storage

About this chart

NOTE: A new operator based Helm Chart replaces this project. This repository will be archived after April 2021

helm repo remove minio
helm repo add minio https://operator.min.io/
helm install --namespace minio-operator --create-namespace --generate-name minio/minio-operator
kubectl apply -f https://github.com/minio/operator/blob/master/examples/tenant.yaml

MinIO (legacy docs)

=====

MinIO is a High Performance Object Storage released under Apache License v2.0. It is API compatible with Amazon S3 cloud storage service. Use MinIO to build high performance infrastructure for machine learning, analytics and application data workloads.

MinIO supports distributed mode. In distributed mode, you can pool multiple drives (even on different machines) into a single object storage server.

For more detailed documentation please visit here

Introduction

This chart bootstraps MinIO deployment on a Kubernetes cluster using the Helm package manager.

Prerequisites

  • Kubernetes 1.4+ with Beta APIs enabled for default standalone mode.
  • Kubernetes 1.5+ with Beta APIs enabled to run MinIO in distributed mode.
  • PV provisioner support in the underlying infrastructure.

Configure MinIO Helm repo

$ helm repo add minio https://helm.min.io/

Installing the Chart

Install this chart using:

$ helm install --namespace minio --generate-name minio/minio

The command deploys MinIO on the Kubernetes cluster in the default configuration. See values.yaml for the parameters that can be configured during installation.

Release name

An instance of a chart running in a Kubernetes cluster is called a release. Each release is identified by a unique name within the cluster. Helm automatically assigns a unique release name after installing the chart. You can also set your preferred name by:

$ helm install my-release minio/minio

Access and Secret keys

By default a pre-generated access and secret key will be used. To override the default keys, pass the access and secret keys as arguments to helm install.

$ helm install --set accessKey=myaccesskey,secretKey=mysecretkey --generate-name minio/minio

Updating MinIO configuration via Helm

ConfigMap allows injecting containers with configuration data even while a Helm release is deployed.

To update your MinIO server configuration while it is deployed in a release, you need to

  1. Check all the configurable values in the MinIO chart using helm inspect values minio/minio.
  2. Override the minio_server_config settings in a YAML formatted file, and then pass that file like this helm upgrade -f config.yaml minio/minio.
  3. Restart the MinIO server(s) for the changes to take effect.

You can also check the history of upgrades to a release using helm history my-release. Replace my-release with the actual release name.

Installing certificates from third party CAs

MinIO can connect to other servers, including MinIO nodes or other server types such as NATs and Redis. If these servers use certificates that were not registered with a known CA, add trust for these certificates to MinIO Server by bundling these certificates into a Kubernetes secret and providing it to Helm via the trustedCertsSecret value. If .Values.tls.enabled is true and you're installing certificates for third party CAs, remember to include Minio's own certificate with key public.crt, if it also needs to be trusted.

For instance, given that TLS is enabled and you need to add trust for Minio's own CA and for the CA of a Keycloak server, a Kubernetes secret can be created from the certificate files using kubectl:

kubectl -n minio create secret generic minio-trusted-certs --from-file=public.crt --from-file=keycloak.crt

If TLS is not enabled, you would need only the third party CA:

kubectl -n minio create secret generic minio-trusted-certs --from-file=keycloak.crt

The name of the generated secret can then be passed to Helm using a values file or the --set parameter:

trustedCertsSecret: "minio-trusted-certs"

or

--set trustedCertsSecret=minio-trusted-certs

Uninstalling the Chart

Assuming your release is named as my-release, delete it using the command:

$ helm delete my-release

or

$ helm uninstall my-release

The command removes all the Kubernetes components associated with the chart and deletes the release.

Upgrading the Chart

You can use Helm to update MinIO version in a live release. Assuming your release is named as my-release, get the values using the command:

$ helm get values my-release > old_values.yaml

Then change the field image.tag in old_values.yaml file with MinIO image tag you want to use. Now update the chart using

$ helm upgrade -f old_values.yaml my-release minio/minio

Default upgrade strategies are specified in the values.yaml file. Update these fields if you'd like to use a different strategy.

Configuration

The following table lists the configurable parameters of the MinIO chart and their default values.

ParameterDescriptionDefault
nameOverrideProvide a name in place of minio""
fullnameOverrideProvide a name to substitute for the full names of resources""
image.repositoryImage repositorymilvusdb/minio
image.tagMinIO image tag. Possible values listed here.RELEASE.2024-12-18T13-15-44Z
image.pullPolicyImage pull policyIfNotPresent
imagePullSecretsList of container registry secrets[]
mcImage.repositoryClient image repositorymilvusdb/minio
mcImage.tagmc image tag. Possible values listed here.RELEASE.2024-12-18T13-15-44Z
mcImage.pullPolicymc Image pull policyIfNotPresent
ingress.enabledEnables Ingressfalse
ingress.labels Ingress labels{}
ingress.annotationsIngress annotations{}
ingress.hostsIngress accepted hostnames[]
ingress.tlsIngress TLS configuration[]
trustedCertsSecretKubernetes secret with trusted certificates to be mounted on {{ .Values.certsPath }}/CAs""
modeMinIO server mode (standalone or distributed)standalone
extraArgsAdditional command line arguments to pass to the MinIO server[]
replicasNumber of nodes (applicable only for MinIO distributed mode).4
zonesNumber of zones (applicable only for MinIO distributed mode).1
drivesPerNodeNumber of drives per node (applicable only for MinIO distributed mode).1
existingSecretName of existing secret with access and secret key.""
accessKeyDefault access key (5 to 20 characters)random 20 chars
secretKeyDefault secret key (8 to 40 characters)random 40 chars
certsPathDefault certs path location/etc/minio/certs
configPathmcDefault config file location for MinIO client - mc/etc/minio/mc
mountPathDefault mount location for persistent drive/export
bucketRootDirectory from where minio should serve buckets.Value of .mountPath
clusterDomaindomain name of kubernetes cluster where pod is running.cluster.local
service.typeKubernetes service typeClusterIP
service.portKubernetes port where service is exposed9000
service.externalIPsservice external IP addressesnil
service.annotationsService annotations{}
serviceAccount.createToggle creation of new service accounttrue
serviceAccount.nameName of service account to create and/or use""
persistence.enabledUse persistent volume to store datatrue
persistence.annotationsPVC annotations{}

Deploy minio with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has minio on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartminio is pinned at v8.0.21 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply