minio-resources-operator

module
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2020 License: Apache-2.0

README

Minio Resources Operator

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

Docker Pulls

Develop

  • Open directory in VSCode as a container.
  • Configure Kubernetes client in the container, such as create a /root/.kube/config file.
  • Run task Install CRDs to create CRD.

You can run operator by running task Run Operator.

Installation

Install helm chart minio-resources-operator version 0.1.3 in repository https://robotinfra-charts.sgp1.digitaloceanspaces.com/.

Values can be found at deploy/values.yaml.

Usage

Create a MinioServer:

apiVersion: minio.robotinfra.com/v1alpha1
kind: MinioServer
metadata:
  name: test
spec:
  hostname: myserver.example.com
  port: 9000
  accessKey: admin
  secretKey: testtest
  ssl: false

Create a MinioBucket:

apiVersion: minio.robotinfra.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.robotinfra.com/v1alpha1
kind: MinioUser
metadata:
  name: test
spec:
  server: test
  accessKey: myUsername
  secretKey: mySecurePassword
  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.robotinfra.com Package v1alpha1 contains API Schema definitions for the minio v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=minio.robotinfra.com
Package v1alpha1 contains API Schema definitions for the minio v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=minio.robotinfra.com Package v1alpha1 contains API Schema definitions for the minio v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=minio.robotinfra.com

Jump to

Keyboard shortcuts

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