forked from minio/operator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from minio/master
merge latest
- Loading branch information
Showing
8 changed files
with
179 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
96 changes: 96 additions & 0 deletions
96
docs/minio-examples/minioinstance-with-external-service.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: minio-service | ||
spec: | ||
type: ClusterIP | ||
ports: | ||
- port: 9000 | ||
targetPort: 9000 | ||
protocol: TCP | ||
selector: | ||
app: minio | ||
--- | ||
apiVersion: miniocontroller.min.io/v1beta1 | ||
kind: MinIOInstance | ||
metadata: | ||
name: minio | ||
## If specified, MinIOInstance pods will be dispatched by specified scheduler. | ||
## If not specified, the pod will be dispatched by default scheduler. | ||
# scheduler: | ||
# name: my-custom-scheduler | ||
spec: | ||
## Supply number of replicas, (should be an even number). | ||
replicas: 4 | ||
## Add metadata to the pods created by the StatefulSet | ||
metadata: | ||
labels: | ||
app: minio | ||
annotations: | ||
prometheus.io/path: /minio/prometheus/metrics | ||
prometheus.io/port: "9000" | ||
prometheus.io/scrape: "true" | ||
## MinIO release version, (minio/minio image tag). | ||
version: RELEASE.2019-07-10T00-34-56Z | ||
## Secret with credentials to be used by MinIO instance. | ||
credsSecret: | ||
name: minio-creds-secret | ||
## 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" | ||
## Configure resource requests and limits for MinIO containers | ||
resources: | ||
requests: | ||
memory: 256Mi | ||
cpu: 250m | ||
limits: | ||
memory: 512Mi | ||
cpu: 750m | ||
## Liveness probe detects situations where MinIO server instance | ||
## is not working properly and needs restart. Kubernetes automatically | ||
## restarts the pods if liveness checks fail. | ||
liveness: | ||
httpGet: | ||
path: /minio/health/live | ||
port: 9000 | ||
initialDelaySeconds: 120 | ||
periodSeconds: 20 | ||
## Readiness probe detects situations when MinIO server instance | ||
## is not ready to accept traffic. Kubernetes doesn't forward | ||
## traffic to the pod while readiness checks fail. | ||
## Recommended to be used only for standalone MinIO Instances. | ||
# readiness: | ||
# httpGet: | ||
# path: /minio/health/ready | ||
# port: 9000 | ||
# initialDelaySeconds: 120 | ||
# periodSeconds: 20 | ||
## nodeSelector parameters for MinIO Pods. It specifies a map of key-value pairs. For the pod to be | ||
## eligible to run on a node, the node must have each of the | ||
## indicated key-value pairs as labels. | ||
## Read more here: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ | ||
# nodeSelector: | ||
# disktype: ssd | ||
## Affinity settings for MinIO pods. Read more about affinity | ||
## here: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity. | ||
# affinity: | ||
## Secret with certificates to configure TLS for MinIO certs. Create secrets as explained | ||
## here: https://github.com/minio/minio/tree/master/docs/tls/kubernetes#2-create-kubernetes-secret | ||
# sslSecret: | ||
# name: tls-ssl-minio | ||
## Mountpath where PV will be mounted inside container(s). Defaults to "/export". | ||
# mountPath: /export | ||
## Subpath inside Mountpath where MinIO starts. Defaults to "". | ||
# subPath: /data | ||
volumeClaimTemplate: | ||
metadata: | ||
name: data | ||
spec: | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 10Gi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters