Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

keep sane defaults for expected deployment size #121

Merged
merged 1 commit into from
May 24, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,8 @@ govet:

gotest:
@go test -race ./...

clean:
@echo "Cleaning up all the generated files"
@find . -name '*.test' | xargs rm -fv
@find . -name '*~' | xargs rm -fv
21 changes: 10 additions & 11 deletions examples/minioinstance-kes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ spec:
## Number of MinIO servers/pods in this zone.
## 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: 4
servers: 16
## Supply number of volumes to be mounted per MinIO server instance.
volumesPerServer: 1
## Mount path where PV will be mounted inside container(s). Defaults to "/export".
Expand All @@ -82,7 +82,7 @@ spec:
- ReadWriteOnce
resources:
requests:
storage: 10Gi
storage: 1Ti
## Define configuration for MCS (Graphical user interface for MinIO)
mcs:
image: minio/mcs:v0.0.4
Expand Down Expand Up @@ -134,16 +134,15 @@ spec:
# operator: Equal
# value: storage
## Add environment variables to be set in MinIO container (https://github.com/minio/minio/tree/master/docs/config)
env:
- name: MINIO_BROWSER
value: "on"
# - name: MINIO_STORAGE_CLASS_RRS
# value: "EC:2"
# env:
# - name: MINIO_BROWSER
# value: "off" # to turn-off browser
# - name: MINIO_STORAGE_CLASS_STANDARD
# value: "EC:4"
## Configure resource requests and limits for MinIO containers
resources:
requests:
memory: 512Mi
cpu: 250m
# resources:
# requests:
# memory: 20Gi
## Liveness probe detects situations where MinIO server instance
## is not working properly and needs restart. Kubernetes automatically
## restarts the pods if liveness checks fail.
Expand Down
21 changes: 10 additions & 11 deletions examples/minioinstance-mcs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ spec:
## Number of MinIO servers/pods in this zone.
## 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: 4
servers: 16
## Supply number of volumes to be mounted per MinIO server instance.
volumesPerServer: 1
## Mount path where PV will be mounted inside container(s). Defaults to "/export".
Expand All @@ -82,7 +82,7 @@ spec:
- ReadWriteOnce
resources:
requests:
storage: 10Gi
storage: 1Ti
## Define configuration for MCS (Graphical user interface for MinIO)
mcs:
image: minio/mcs:v0.0.4
Expand Down Expand Up @@ -122,16 +122,15 @@ spec:
# operator: Equal
# value: storage
## Add environment variables to be set in MinIO container (https://github.com/minio/minio/tree/master/docs/config)
env:
- name: MINIO_BROWSER
value: "on"
# - name: MINIO_STORAGE_CLASS_RRS
# value: "EC:2"
# env:
# - name: MINIO_BROWSER
# value: "off" # to turn-off browser
# - name: MINIO_STORAGE_CLASS_STANDARD
# value: "EC:4"
## Configure resource requests and limits for MinIO containers
resources:
requests:
memory: 512Mi
cpu: 250m
# resources:
# requests:
# memory: 20Gi
## Liveness probe detects situations where MinIO server instance
## is not working properly and needs restart. Kubernetes automatically
## restarts the pods if liveness checks fail.
Expand Down
22 changes: 12 additions & 10 deletions examples/minioinstance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ spec:
- port: 9000
targetPort: 9000
protocol: TCP
# Optional field
# By default and for convenience, the Kubernetes control plane will allocate a port from a range (default: 30000-32767)
# nodePort: 30007
selector:
app: minio
---
Expand Down Expand Up @@ -47,7 +50,7 @@ spec:
## Number of MinIO servers/pods in this zone.
## 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: 4
servers: 16
## Supply number of volumes to be mounted per MinIO server instance.
volumesPerServer: 1
## Mount path where PV will be mounted inside container(s). Defaults to "/export".
Expand All @@ -65,7 +68,7 @@ spec:
- ReadWriteOnce
resources:
requests:
storage: 10Gi
storage: 1Ti
## Secret with credentials to be used by MinIO instance.
credsSecret:
name: minio-creds-secret
Expand Down Expand Up @@ -96,16 +99,15 @@ spec:
# operator: Equal
# value: storage
## Add environment variables to be set in MinIO container (https://github.com/minio/minio/tree/master/docs/config)
env:
- name: MINIO_BROWSER
value: "on"
# - name: MINIO_STORAGE_CLASS_RRS
# env:
# - name: MINIO_BROWSER
# value: "off" # to turn-off browser
# - name: MINIO_STORAGE_CLASS_STANDARD
# value: "EC:2"
## Configure resource requests and limits for MinIO containers
resources:
requests:
memory: 512Mi
cpu: 250m
# resources:
# requests:
# memory: 20Gi
## Liveness probe detects situations where MinIO server instance
## is not working properly and needs restart. Kubernetes automatically
## restarts the pods if liveness checks fail.
Expand Down