-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
minio - k8s - add k8s-install.sh helper script (refs #25)
- Loading branch information
Showing
2 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|