MinIO
Let's see how to run MinIO (code) in a Kubernetes cluster.
Repository
We'll use the the official Helm chart:
bash
helm repo add minio https://charts.min.io/
helm repo updateConfiguration
Create the values.yaml file to override default parameters.
yaml
resources:
requests:
memory: 512Mi
replicas: 1
mode: standalone
persistence:
enabled: false
# access key length should be at least 3 character long
rootUser: admin
# secret key length should be at least 8 character long
rootPassword: pasWd8charyaml
persistence:
enabled: true
size: 10Giyaml
ingress:
enabled: true
ingressClassName: nginx
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
hosts:
- minio.somedomain
tls:
- secretName: minio-tls
hosts:
- minio.somedomain
consoleIngress:
enabled: true
ingressClassName: nginx
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
hosts:
- minio-console.somedomain
tls:
- secretName: minio-console-tls
hosts:
- minio-console.somedomainDeployment
Install the application:
bash
helm upgrade --install minio minio/minio -f values.yaml --namespace minio --create-namespaceClean-up
Uninstall the application and delete the namespace:
bash
helm uninstall minio -n minio
kubectl delete ns minio