minio-resources-operator

module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2020 License: Apache-2.0

README

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/v1alpha1
kind: MinioServer
metadata:
  name: test
spec:
  hostname: myserver.example.com
  port: 9000
  ssl: false

Create a MinioBucket:

apiVersion: minio.walkbase.com/v1alpha1
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/v1alpha1
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": ""
        }
      ]
    }

Directories

Path Synopsis
cmd
pkg
apis/minio
Package minio contains minio API versions.
Package minio contains minio API versions.
apis/minio/v1alpha1
Package v1alpha1 contains API Schema definitions for the minio v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=minio.walkbase.com Package v1alpha1 contains API Schema definitions for the minio v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=minio.walkbase.com
Package v1alpha1 contains API Schema definitions for the minio v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=minio.walkbase.com Package v1alpha1 contains API Schema definitions for the minio v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=minio.walkbase.com

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL