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

Added helm3 option to minio app #48

Merged
merged 1 commit into from
Mar 19, 2020
Merged

Conversation

kadern0
Copy link
Contributor

@kadern0 kadern0 commented Mar 10, 2020

Signed-off-by: kadern0 kaderno@gmail.com

Added

Description

Motivation and Context

Fixes #7

How Has This Been Tested?

Run:

 ./arkade install minio --set persistence.enabled=false
Using kubeconfig: /home/kaderno/.kube/config
Using helm3
Client: x86_64, Linux
2020/03/10 20:24:48 User dir established as: /home/kaderno/.arkade/
"stable" has been added to your repositories
Hang tight while we grab the latest from your chart repositories...
...Successfully got an update from the "openfaas" chart repository
...Successfully got an update from the "stable" chart repository
Update Complete. ⎈ Happy Helming!⎈ 
Access Key not provided, one will be generated for you
Secret Key not provided, one will be generated for you
VALUES values.yaml
Command: /home/kaderno/.arkade/bin/helm3/helm [upgrade --install minio stable/minio --namespace default --values /tmp/charts/minio/values.yaml --set accessKey=87WG8If4g821crqV19P3 --set secretKey=LaoCw33dc7eW9Nzf4ZoYHkDE9525cTVT1VfWpEuw --set persistence.enabled=false]
Release "minio" has been upgraded. Happy Helming!
NAME: minio
LAST DEPLOYED: Tue Mar 10 20:24:57 2020
NAMESPACE: default
STATUS: deployed
REVISION: 35
TEST SUITE: None
NOTES:
Minio can be accessed via port 9000 on the following DNS name from within your cluster:
minio.default.svc.cluster.local

To access Minio from localhost, run the below commands:

  1. export POD_NAME=$(kubectl get pods --namespace default -l "release=minio" -o jsonpath="{.items[0].metadata.name}")

  2. kubectl port-forward $POD_NAME 9000 --namespace default

Read more about port forwarding here: http://kubernetes.io/docs/user-guide/kubectl/kubectl_port-forward/

You can now access Minio server on http://localhost:9000. Follow the below steps to connect to Minio server with mc client:

  1. Download the Minio mc client - https://docs.minio.io/docs/minio-client-quickstart-guide

  2. mc config host add minio-local http://localhost:9000 87WG8If4g821crqV19P3 LaoCw33dc7eW9Nzf4ZoYHkDE9525cTVT1VfWpEuw S3v4

  3. mc ls minio-local

Alternately, you can use your browser or the Minio SDK to access the server - https://docs.minio.io/categories/17
=======================================================================
= Minio has been installed.                                           =
=======================================================================

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

# Get the access and secret key to gain access to minio
ACCESSKEY=$(kubectl get secret -n default minio -o jsonpath="{.data.accesskey}" | base64 --decode; echo)
SECRETKEY=$(kubectl get secret -n default minio -o jsonpath="{.data.secretkey}" | base64 --decode; echo)

# Get the Minio Client
curl -SLf https://dl.min.io/client/mc/release/linux-amd64/mc \
  && chmod +x mc

# Add a host
mc config host add minio http://127.0.0.1:9000 $ACCESSKEY $SECRETKEY

# List buckets
mc ls minio

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

Thanks for using arkade!
 kubectl get po
NAME                                             READY   STATUS    RESTARTS   AGE
minio-66c9b9f79b-49wp7                           1/1     Running   0          89s

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)

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 added tests to cover my changes.
  • All new and existing tests passed.

@kadern0
Copy link
Contributor Author

kadern0 commented Mar 10, 2020

I'd like a second tester for this one.

updated password generation

Signed-off-by: kadern0 <kaderno@gmail.com>
@alexellis
Copy link
Owner

@aidun please can you review and test?

@aidun
Copy link
Contributor

aidun commented Mar 14, 2020 via email

Copy link
Owner

@alexellis alexellis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved

@alexellis alexellis merged commit c8e52cb into alexellis:master Mar 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add --helm3 to the minio app
3 participants