Skip to content

How to test MinIO in k8s

Cesar Celis edited this page Aug 8, 2024 · 7 revisions

Objective:

Test MinIO in k8s

Steps:

  1. Install Docker

  2. Install Kind

kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
networking:
  apiServerAddress: "127.0.0.1"
  apiServerPort: 6443
nodes:
- role: control-plane
  extraPortMappings:
  - containerPort: 30080
    hostPort: 30080
    listenAddress: "127.0.0.1"
    protocol: TCP
- role: worker
  extraPortMappings:
  - containerPort: 30081
    hostPort: 30081
    listenAddress: "127.0.0.1"
    protocol: TCP
- role: worker
  extraPortMappings:
  - containerPort: 30082
    hostPort: 30082
    listenAddress: "127.0.0.1"
    protocol: TCP
- role: worker
  extraPortMappings:
  - containerPort: 30083
    hostPort: 30083
    listenAddress: "127.0.0.1"
    protocol: TCP
- role: worker
  extraPortMappings:
  - containerPort: 30084
    hostPort: 30084
    listenAddress: "127.0.0.1"
    protocol: TCP
kind create cluster --config config.yaml
  1. Install Operator:
kubectl apply -k github.com/minio/operator/resources/\?ref\=v5.0.15
  1. Install Tenant:
kustomize build github.com/minio/operator/examples/kustomization/tenant-lite > tenant.yaml
kubectl apply -f tenant.yaml
Screenshot 2024-08-08 at 1 07 50 PM
Clone this wiki locally