Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update minio chart location to bitnami #1052

Merged
merged 1 commit into from
Apr 9, 2024

Conversation

nitishkumar71
Copy link
Contributor

Description

  • MinIO chart has been updated to point at bitnami repo
  • access-key and secret-key has been replaced with root-user and root-password respectively
  • Install message has been updated to reflect new parameter changes

Motivation and Context

How Has This Been Tested?

If updating or adding a new CLI to arkade get, run:

go build && ./hack/test-tool.sh TOOL_NAME

Run arkade install minio produced below output. Also following installation message to access MinIO with mc cli works correctly.

Node architecture: "amd64"
Access Key not provided, one will be generated for you
Secret Key not provided, one will be generated for you
Using Kubeconfig: /home/nitishkumar/.kube/config
[Warning] unable to create namespace default, may already exist: Error from server (AlreadyExists): namespaces "default" already exists
Client: x86_64, Linux
2024/04/03 23:13:50 User dir established as: /home/nitishkumar/.arkade/
"bitnamicharts" has been added to your repositories

Hang tight while we grab the latest from your chart repositories...
...Successfully got an update from the "jetstack" chart repository
...Successfully got an update from the "harbor" chart repository
...Successfully got an update from the "ingress-nginx" chart repository
...Successfully got an update from the "bitnamicharts" chart repository
...Successfully got an update from the "bitnami-redis" chart repository
...Successfully got an update from the "openfaas" chart repository
...Successfully got an update from the "platform" chart repository
Update Complete. ⎈Happy Helming!⎈

VALUES values.yaml
Command: /home/nitishkumar/.arkade/bin/helm [upgrade --install minio bitnamicharts/minio --namespace default --values /tmp/charts/minio/values.yaml --set auth.rootUser=dZ482X0G53H9FZB17AB6 --set auth.rootPassword=/8bKucjI2tJ/9XGVZBRv2X/5uic+3jx9o71E/4sa --set persistence.enabled=false]
Release "minio" does not exist. Installing it now.
NAME: minio
LAST DEPLOYED: Wed Apr  3 23:14:27 2024
NAMESPACE: default
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
CHART NAME: minio
CHART VERSION: 14.1.4
APP VERSION: 2024.3.30

** Please be patient while the chart is being deployed **

MinIO® can be accessed via port  on the following DNS name from within your cluster:

   minio.default.svc.cluster.local

To get your credentials run:

   export ROOT_USER=$(kubectl get secret --namespace default minio -o jsonpath="{.data.root-user}" | base64 -d)
   export ROOT_PASSWORD=$(kubectl get secret --namespace default minio -o jsonpath="{.data.root-password}" | base64 -d)

To connect to your MinIO® server using a client:

- Run a MinIO® Client pod and append the desired command (e.g. 'admin info'):

   kubectl run --namespace default minio-client \
     --rm --tty -i --restart='Never' \
     --env MINIO_SERVER_ROOT_USER=$ROOT_USER \
     --env MINIO_SERVER_ROOT_PASSWORD=$ROOT_PASSWORD \
     --env MINIO_SERVER_HOST=minio \
     --image docker.io/bitnami/minio-client:2024.3.30-debian-12-r0 -- admin info minio

To access the MinIO® web UI:

- Get the MinIO® URL:

   echo "MinIO® web URL: http://127.0.0.1:9001/minio"
   kubectl port-forward --namespace default svc/minio 9001:9001

WARNING: There are "resources" sections in the chart not set. Using "resourcesPreset" is not recommended for production. For production installations, please set the following values according to your workload needs:
  - resources
+info https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
=======================================================================
= Minio has been installed.                                           =
=======================================================================

# Forward the minio port to your machine
kubectl port-forward -n default svc/minio 9000:9000 &

# Get the root user and password to gain access to minio
MINIO_ROOT_USER=$(kubectl get secret -n default minio -o jsonpath="{.data.root-user}" | base64 --decode; echo)
MINIO_ROOT_PASS=$(kubectl get secret -n default minio -o jsonpath="{.data.root-password}" | base64 --decode; echo)

# Get the Minio Client
arkade get mc

# Add a host
mc config host add minio http://127.0.0.1:9000 $MINIO_ROOT_USER $MINIO_ROOT_PASS

# List buckets
mc ls minio

# Find out more at: https://min.io

🚀 Speed up GitHub Actions/GitLab CI + reduce costs: https://actuated.dev

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Documentation

  • I have updated the list of tools in README.md if (required) with ./arkade get --format markdown
  • I have updated the list of apps in README.md if (required) with ./arkade install --help

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I've read the CONTRIBUTION guide
  • I have signed-off my commits with git commit -s
  • I have tested this on arm, or have added code to prevent deployment

@alexellis alexellis merged commit 0818507 into alexellis:master Apr 9, 2024
2 checks passed
@alexellis
Copy link
Owner

Thank you @nitishkumar71 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Minio chart deprecated
2 participants