Skip to content

Commit

Permalink
minio - k8s - add k8s-install.sh helper script (refs #25)
Browse files Browse the repository at this point in the history
  • Loading branch information
mborne committed Dec 21, 2022
1 parent 2df0707 commit 1a1b7fe
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
22 changes: 22 additions & 0 deletions minio/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,28 @@ Container running [MinIO](https://min.io/) offering S3 compatible object storage
* Open https://minio.dev.localhost/
* Use https://minio-s3.dev.localhost as an S3 endpoint

## Usage with Kubernetes

* Configure default admin password

```bash
export MINIO_ROOT_PASSWORD=ChangeIt
```

* Read [k8s-install.sh](k8s-install.sh) and run :

```bash
# To get dashboard on https://minio.dev.localhost
bash k8s-install.sh
# To get dashboard on https://minio.example.net
DEVBOX_HOSTNAME=example.net bash k8s-install.sh
```

* Wait for pods to be ready : `kubectl -n minio-system get pods -w`
* Open dashboard on https://minio.dev.localhost/minio



## Resources

* [Using MinIO with rclone](rclone.md)
Expand Down
20 changes: 20 additions & 0 deletions minio/k8s-install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash

DEVBOX_HOSTNAME=${DEVBOX_HOSTNAME:-dev.localhost}
MINIO_ROOT_PASSWORD=${MINIO_ROOT_PASSWORD:-ChangeIt}

# Add helm repository
helm repo add bitnami https://charts.bitnami.com/bitnami

# Update helm repositories
helm repo update

# Create namespace minio-system if not exists
kubectl create namespace minio-system --dry-run=client -o yaml | kubectl apply -f -

# Deploy minio with helm
helm -n minio-system upgrade --install minio bitnami/minio \
--set ingress.enabled=true \
--set ingress.hostname=minio.$DEVBOX_HOSTNAME \
--set auth.rootPassword=$MINIO_ROOT_PASSWORD

0 comments on commit 1a1b7fe

Please sign in to comment.