minio
High Performance, Kubernetes Native Object Storage
About this chart
NOTE: This helm chart is in code freeze i.e we will only update MinIO releases occastionally by bumping up the version. For latest features you are advised to start using our MinIO operator.
MinIO
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. The configuration section lists 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
- Check all the configurable values in the MinIO chart using
helm inspect values minio/minio. - Override the
minio_server_configsettings in a YAML formatted file, and then pass that file like thishelm upgrade -f config.yaml minio/minio. - 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.
| Parameter | Description | Default |
|---|---|---|
nameOverride | Provide a name in place of minio | "" |
fullnameOverride | Provide a name to substitute for the full names of resources | "" |
image.repository | Image repository | minio/minio |
image.tag | MinIO image tag. Possible values listed here. | RELEASE.2020-11-06T23-17-07Z |
image.pullPolicy | Image pull policy | IfNotPresent |
imagePullSecrets | List of container registry secrets | [] |
mcImage.repository | Client image repository | minio/mc |
mcImage.tag | mc image tag. Possible values listed here. | RELEASE.2020-10-03T02-54-56Z |
mcImage.pullPolicy | mc Image pull policy | IfNotPresent |
ingress.enabled | Enables Ingress | false |
ingress.labels | Ingress labels | {} |
ingress.annotations | Ingress annotations | {} |
ingress.hosts | Ingress accepted hostnames | [] |
ingress.tls | Ingress TLS configuration | [] |
trustedCertsSecret | Kubernetes secret with trusted certificates to be mounted on {{ .Values.certsPath }}/CAs | "" |
mode | MinIO server mode (standalone or distributed) | standalone |
extraArgs | Additional command line arguments to pass to the MinIO server | [] |
replicas | Number of nodes (applicable only for MinIO distributed mode). | 4 |
zones | Number of zones (applicable only for MinIO distributed mode). | 1 |
drivesPerNode | Number of drives per node (applicable only for MinIO distributed mode). | 1 |
existingSecret | Name of existing secret with access and secret key. | "" |
accessKey | Default access key (5 to 20 characters) | random 20 chars |
secretKey | Default secret key (8 to 40 characters) | random 40 chars |
certsPath | Default certs path location | /etc/minio/certs |
configPathmc | Default config file location for MinIO client - mc | /etc/minio/mc |
mountPath | Default mount location for persistent drive | /export |
bucketRoot | Directory from where minio should serve buckets. | Value of .mountPath |
clusterDomain | domain name of kubernetes cluster where pod is running. | cluster.local |
service.type | Kubernetes service type | ClusterIP |
service.port | Kubernetes port where service is exposed | 9000 |
service.externalIPs | service external IP addresses | nil |
service.annotations | Service annotations | {} |
serviceAccount.create | Toggle creation of new service account | true |
serviceAccount.name | Name of service account to create and/or use | "" |
persistence.enabled | Use persistent volume to store data | true |
persistence.size | Size of persistent volume claim | 500Gi |
persistence.existingClaim | Use an existing PVC to persist data |
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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartminio is pinned at v8.0.10 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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