Skip to content

Instantly share code, notes, and snippets.

@rkesters
Created May 17, 2023 04:38
Show Gist options
  • Save rkesters/df3312e0fdc1ec262f3bb82d3dd3a39f to your computer and use it in GitHub Desktop.
Save rkesters/df3312e0fdc1ec262f3bb82d3dd3a39f to your computer and use it in GitHub Desktop.
---
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: minio-storage-class
provisioner: rancher.io/local-path
volumeBindingMode: WaitForFirstConsumer
reclaimPolicy: Retain
---
apiVersion: helm.cattle.io/v1
kind: HelmChart
metadata:
name: minio-operator
namespace: minio-operator
spec:
chart: operator
jobImage: rancher/klipper-helm:v0.7.4-build20221121
repo: https://operator.min.io/
targetNamespace: minio-operator
version: 5.0.4
valuesContent: |-
env:
- name: MINIO_CONSOLE_TLS_ENABLE
value: "off"
- name: OPERATOR_SUBPATH
value: "/minio-console/"
- name: MINIO_OPERATOR_RUNTIME
value: "Rancher"
operator:
replicaCount: 1
---
apiVersion: helm.cattle.io/v1
kind: HelmChart
metadata:
name: minio-tenant-1
namespace: minio-tenant-1
spec:
chart: tenant
jobImage: rancher/klipper-helm:v0.7.4-build20221121
repo: https://operator.min.io/
targetNamespace: minio-tenant-1
version: 5.0.4
valuesContent: |-
tenant:
name: mkc
env:
- name: MINIO_CONSOLE_TLS_ENABLE
value: "off"
certifcate:
requestAutoCert: true
pools:
## Servers specifies the number of MinIO Tenant Pods / Servers in this pool.
## For standalone mode, supply 1. For distributed mode, supply 4 or more.
## Note that the operator does not support upgrading from standalone to distributed mode.
- servers: 1
## custom name for the pool
name: pool-0
## volumesPerServer specifies the number of volumes attached per MinIO Tenant Pod / Server.
volumesPerServer: 1
## size specifies the capacity per volume
size: 2Gi
## storageClass specifies the storage class name to be used for this pool
storageClassName: minio-storage-class
---
kind: Ingress
apiVersion: networking.k8s.io/v1
metadata:
name: minio-console
namespace: minio-operator
spec:
rules:
- http:
paths:
- path: /minio-console/
pathType: Prefix
backend:
service:
name: console
port:
number: 9090
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment