Skip to content

minio vm‐broker run k3s

Allan Roger Reid edited this page Dec 4, 2024 · 2 revisions

This walkthru shows how to setup a minio operator, first installing k3s

Note: First, create an instance using steps in https://github.com/allanrogerr/public/wiki/minio-vm%E2%80%90broker-backup-instance


From the Instance > Summary page, obtain the ssh command, access the instance, set linger to preserve long running sessions and reboot

e.g.

ssh -p 30086 [email protected]
loginctl enable-linger ubuntu
sudo reboot -h now

1.- Install and verify k3s. Other steps beyond this are unnecessary for pure k3s install

sudo touch /dev/kmsg
curl -sfL https://get.k3s.io | K3S_KUBECONFIG_MODE="644" sh -s - --snapshotter=fuse-overlayfs
sudo journalctl -u k3s.service

Install and deploy a working minio tenant

2.- Install krew (see https://krew.sigs.k8s.io/docs/user-guide/setup/install/ for macOS/Linux > Bash or ZSH shells)

(
  set -x; cd "$(mktemp -d)" &&
  OS="$(uname | tr '[:upper:]' '[:lower:]')" &&
  ARCH="$(uname -m | sed -e 's/x86_64/amd64/' -e 's/\(arm\)\(64\)\?.*/\1\2/' -e 's/aarch64$/arm64/')" &&
  KREW="krew-${OS}_${ARCH}" &&
  curl -fsSLO "https://github.com/kubernetes-sigs/krew/releases/latest/download/${KREW}.tar.gz" &&
  tar zxvf "${KREW}.tar.gz" &&
  ./"${KREW}" install krew
)
export PATH="${KREW_ROOT:-$HOME/.krew}/bin:$PATH"
kubectl krew update
kubectl krew install minio
kubectl minio version

4. Deploy non-TLS operator and port-forward to local machine (vm broker instance)

kubectl minio init
kubectl minio proxy -n minio-operator // only to extract jwt; immediately kill
kubectl -n minio-operator port-forward --address 0.0.0.0 svc/console 10000:9090 &

5. Validate deployment on vm broker instance

curl http://127.0.0.1:10000

6. Validate deployment on browser. Consider vm broker instance is called "unpriv"

Navigate to http://unpriv.minio.training:10000/

Clone this wiki locally