-
Notifications
You must be signed in to change notification settings - Fork 0
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
sudo touch /dev/kmsg
curl -sfL https://get.k3s.io | K3S_KUBECONFIG_MODE="644" sh -s - --snapshotter=fuse-overlayfs
sudo journalctl -u k3s.service
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"
3. Install kubectl minio
(see https://min.io/docs/minio/kubernetes/upstream/reference/kubectl-minio-plugin.html#installation)
kubectl krew update
kubectl krew install minio
kubectl minio version
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 &
curl http://127.0.0.1:10000
Navigate to http://unpriv.minio.training:10000/