Moonglade

Modern Markdown blogging with AI-powered localization and search.

Tag: microK8s

RSS

Setting up MinIO with k8s and a Quick Introduction to Its Usage

This document provides a detailed walkthrough of the complete process for deploying MinIO object storage in a local environment using Kubernetes. It begins by introducing installation methods for two lightweight K8s distributions: first, installing Minikube via binary or apt packages, configuring the Docker driver and image mirrors, and demonstrating basic operations such as creating an application, exposing a NodePort service, and port forwarding; second, installing MicroK8s using the Snap package manager, including user permission configuration, adding cluster nodes, enabling the Dashboard plugin, and generating an access token to manage the cluster via a browser. Subsequently, the document focuses on how to deploy a MinIO development environment using the `kubectl apply` command, covering checking Pod and service status, describing resource details, tracking logs, and using port-forward to forward the Web interface (9090) and console (9000) ports. It also notes that the initial account credentials need to be extracted from the logs. Finally, the article provides a Go language code example for client testing, aiming to help developers quickly set up and verify the availability of the MinIO service in a K8s environment, laying the foundation for subsequent project integration.

Views 145
Kubernetes devops docker k8s microK8s minio