minio-gateway

by KubeSphere

Helm chartv0.1.0App 0.1.0Verified publisher

This chart is made based on bitnami/minio chart version 7.1.7 app version 2021.6.17. The major difference is this chart is using official minio image and the gateway supports external etcd as data store.

About this chart

NOTICE

This chart is made based on bitnami/minio chart version 7.1.7 app version 2021.6.17. The major difference is this chart is using official minio image and the gateway supports external etcd as data store to persist IAM data.

If you don't need a minio gateway or your gateway doesn't need an external data store, please use the official bitnami minio chart instead.

Bitnami Object Storage Helm Chart based on MinIO®

MinIO® is an object storage server, compatible with Amazon S3 cloud storage service, mainly used for storing unstructured data (such as photos, videos, log files, etc.)

Disclaimer: All software products, projects and company names are trademark™ or registered® trademarks of their respective holders, and use of them does not imply any affiliation or endorsement. This software is licensed to you subject to one or more open source licenses and VMware provides the software on an AS-IS basis. MinIO® is a registered trademark of the MinIO, Inc. in the US and other countries. Bitnami is not affiliated, associated, authorized, endorsed by, or in any way officially connected with MinIO, Inc. MinIO® is licensed under GNU AGPL v3.0.

TL;DR

Copy ./example-minio-gateway-values.yaml and edit it as needed, then

$ helm install my-release test/minio-gateway -f ./example-minio-gateway-values.yaml

This will install a minio gateway and use etcd as data store.

Introduction

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

Bitnami charts can be used with Kubeapps for deployment and management of Helm Charts in clusters. This Helm chart has been tested on top of Bitnami Kubernetes Production Runtime (BKPR). Deploy BKPR to get automated TLS certificates, logging and monitoring for your applications.

Prerequisites

  • Kubernetes 1.12+
  • Helm 3.1.0
  • PV provisioner support in the underlying infrastructure
  • ReadWriteMany volume for Gateway NAS deployment scaling

Installing the Chart

To install the chart with the release name my-release:

$ helm repo add bitnami https://charts.bitnami.com/bitnami
$ helm install my-release bitnami/minio

These commands deploy MinIO® on the Kubernetes cluster in the default configuration. The Parameters section lists the parameters that can be configured during installation.

Tip: List all releases using helm list

Uninstalling the Chart

To uninstall/delete the my-release deployment:

$ helm delete my-release

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

Parameters

Global parameters

NameDescriptionValue
global.imageRegistryGlobal Docker image registry""
global.imagePullSecretsGlobal Docker registry secret names as an array[]
global.storageClassGlobal StorageClass for Persistent Volume(s)""
global.minioGlobal MinIO® credentials{}

Common parameters

NameDescriptionValue
nameOverrideString to partially override common.names.fullname template (will maintain the release name)""
fullnameOverrideString to fully override common.names.fullname template""
commonLabelsLabels to add to all deployed objects{}
commonAnnotationsAnnotations to add to all deployed objects{}
kubeVersionForce target Kubernetes version (using Helm capabilities if not set)""
clusterDomainDefault Kubernetes cluster domaincluster.local
extraDeployArray of extra objects to deploy with the release[]

MinIO® parameters

NameDescriptionValue
image.registryMinIO® image registrydocker.io
image.repositoryMinIO® image repositorybitnami/minio
image.tagMinIO® image tag (immutable tags are recommended)2021.6.17-debian-10-r38
image.pullPolicyImage pull policyIfNotPresent
image.pullSecretsSpecify docker-registry secret names as an array[]
image.debugSpecify if debug logs should be enabledfalse
clientImage.registryMinIO® Client image registrydocker.io
clientImage.repositoryMinIO® Client image repositorybitnami/minio-client
clientImage.tagMinIO® Client image tag (immutable tags are recommended)2021.7.27-debian-10-r7
modeMinIO® server mode (standalone or distributed)standalone
accessKey.passwordMinIO® Access Key. Ignored if existing secret is provided.""
accessKey.forcePasswordOption to force users to specify a password. That is required for 'helm upgrade' to work properly.false
secretKey.passwordMinIO® Secret Key. Ignored if existing secret is provided.""
secretKey.forcePasswordOption to force users to specify a password. That is required for 'helm upgrade' to work properly.false
existingSecretUse existing secret (ignores accessKey, and secretKey passwords)""
useCredentialsFileMount MinIO® secret as a file instead of passing environment variablefalse
forceNewKeysForce admin credentials (access and secret key) to be reconfigured every time they change in the secretsfalse
defaultBucketsComma, semi-colon or space separated list of buckets to create at initialization (only in standalone mode)""
disableWebUIDisable MinIO® Web UIfalse
tls.enabledEnable tls in front of the containerfalse
tls.existingSecretName of an existing secret holding the certificate information""
tls.secretNameDEPRECATED. Use tls.existingSecret instead.""
tls.mountPathThe mount path where the secret will be located""
extraEnvExtra environment variables to be set on MinIO® container{}
extraEnvVarsCMConfigMap with extra environment variables""
extraEnvVarsSecretSecret with extra environment variables""
commandDefault container command (useful when using custom images). Use array form[]
argsDefault container args (useful when using custom images). Use array form[]

MinIO® deployment/statefulset parameters

NameDescriptionValue
schedulerNameSpecifies the schedulerName, if it's nil uses kube-scheduler""
deployment.updateStrategy.typeSet to Recreate if you use persistent volume that cannot be mounted by more than one pods to make sure the pods is destroyed first.Recreate
statefulset.updateStrategyUpdate strategy, can be set to RollingUpdate or OnDeleteRollingUpdate
statefulset.podManagementPolicyStatefulSet controller supports relax its ordering guarantees while preserving its uniqueness and identity guarantees. There are two valid pod management policies: OrderedReady and ParallelParallel
statefulset.replicaCountNumber of pods per zone (only for MinIO® distributed mode). Should be even and >= 44
statefulset.zonesNumber of zones (only for MinIO® distributed mode)1
statefulset.drivesPerNodeNumber of drives attached to every node (only for MinIO® distributed mode)1
hostAliasesMinIO® pod host aliases[]
containerPortMinIO® container port to open9000
podSecurityContext.enabledEnable pod Security Contexttrue
podSecurityContext.fsGroupGroup ID for the container1001
containerSecurityContext.enabledEnable container Security Contexttrue
containerSecurityContext.runAsUserUser ID for the container1001
containerSecurityContext.runAsNonRootAvoid running as root Usertrue
podLabelsExtra labels for MinIO® pods

Deploy minio-gateway with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has minio-gateway 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-gateway is pinned at v0.1.0 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