Difference between revisions of "Install Minio on K3S"
Jump to navigation
Jump to search
Line 10: | Line 10: | ||
wget https://dl.min.io/client/mc/release/linux-amd64/mc -O $HOME/bin/mc | wget https://dl.min.io/client/mc/release/linux-amd64/mc -O $HOME/bin/mc | ||
chmod 700 $HOME/bin/mc | chmod 700 $HOME/bin/mc | ||
+ | |||
+ | * show creds | ||
+ | |||
+ | kubectl get secrets | ||
+ | |||
ACCESS_KEY=$(kubectl get secret minio-1619501591 -o jsonpath="{.data.accesskey}" | base64 --decode) | ACCESS_KEY=$(kubectl get secret minio-1619501591 -o jsonpath="{.data.accesskey}" | base64 --decode) | ||
SECRET_KEY=$(kubectl get secret minio-1619501591 -o jsonpath="{.data.secretkey}" | base64 --decode) | SECRET_KEY=$(kubectl get secret minio-1619501591 -o jsonpath="{.data.secretkey}" | base64 --decode) |
Latest revision as of 11:25, 6 May 2021
- create namespace
kubectl create namespace minio kubectl config set-context --namespace=minio --current
helm repo add minio https://helm.min.io/ export KUBECONFIG=/etc/rancher/k3s/k3s.yaml # for K3S helm install --namespace minio --generate-name minio/minio
mkdir $HOME/bin wget https://dl.min.io/client/mc/release/linux-amd64/mc -O $HOME/bin/mc chmod 700 $HOME/bin/mc
- show creds
kubectl get secrets ACCESS_KEY=$(kubectl get secret minio-1619501591 -o jsonpath="{.data.accesskey}" | base64 --decode) SECRET_KEY=$(kubectl get secret minio-1619501591 -o jsonpath="{.data.secretkey}" | base64 --decode) mc alias set local http://localhost:9000 "$ACCESS_KEY" "$SECRET_KEY" --api s3v4
alias mls='mc ls' alias mcp='mc cp' alias mcat='mc cat' alias mmkdir='mc mb' alias mpipe='mc pipe' alias mfind='mc find' mc --autocompletion
mc mb local/bucket1 mls local
kubectl get ingress kubectl get svc kubectl create ingress ingress-www --rule=s3.vm20.lab.bitbull.ch/*=minio-1619501591:9000