minio
by KubeSphere
High Performance, Kubernetes Native Object Storage
About this chart
Forked from https://github.com/minio/charts/tree/master/minio.
Changes to the original chart:
- Use the actual specific version instead of "master".
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.
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-08-08T04-50-06Z |
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-08-08T02-33-58Z |
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 | [] |
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) | YOURACCESSKEY |
secretKey | Default secret key (8 to 40 characters) | YOURSECRETKEY |
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 | nil |
persistence.storageClass | Storage class name of PVC | nil |
persistence.accessMode | ReadWriteOnce or ReadOnly | ReadWriteOnce |
persistence.subPath | Mount a sub directory of the persistent volume if set | "" |
resources | Memory resource requests | Memory: 4Gi |
priorityClassName | Pod priority settings | "" |
securityContext.enabled | Enable to run containers as non-root. NOTE: if persistence.enabled=false then securityContext will be automatically disabled | true |
securityContext.runAsUser | User id of the user for the container | 1000 |
securityContext.runAsGroup | Group id of the user for the container |
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 v6.0.5 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