Skip to content
This repository was archived by the owner on Sep 14, 2023. It is now read-only.

Walkbase/minio-resources-operator

 
 

Repository files navigation

Minio Resources Operator

Kubernetes Operator that manage buckets and users on a Minio server.

This is a fork of https://github.com/rllzyy/minio-resources-operator that keeps all Minio credentials in Hashicorp Vault.

Usage

Create a MinioServer:

apiVersion: minio.walkbase.com/v1
kind: MinioServer
metadata:
  name: test
spec:
  hostname: myserver.example.com
  port: 9000
  ssl: false

Create a MinioBucket:

apiVersion: minio.walkbase.com/v1
kind: MinioBucket
metadata:
  name: bucket
spec:
  name: mybucket
  server: test
  policy: |
    {
      "Version": "2012-10-17",
      "Statement": [
        {
          "Action": [
            "s3:GetObject"
          ],
          "Effect": "Allow",
          "Principal": {
            "AWS": ["*"]
          },
          "Resource": [
            "arn:aws:s3:::mybucket/*"
          ],
          "Sid": ""
        }
      ]
    }

Create a MinioUser:

apiVersion: minio.walkbase.com/v1
kind: MinioUser
metadata:
  name: test
spec:
  server: test
  policy: |
    {
      "Version": "2012-10-17",
      "Statement": [
        {
          "Action": [
            "s3:*"
          ],
          "Effect": "Allow",
          "Resource": [
            "arn:aws:s3:::mybucket/*",
            "arn:aws:s3:::mybucket"
          ],
          "Sid": ""
        }
      ]
    }

About

Kubernetes Operator for Minio Resources

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 77.4%
  • Makefile 20.8%
  • Dockerfile 1.8%