Last active
March 24, 2019 03:50
-
-
Save althunibat/7f7ba650c29a972cb06d0e0b27ac18dc to your computer and use it in GitHub Desktop.
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
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: minio | |
labels: | |
app: minio | |
spec: | |
clusterIP: None | |
ports: | |
- port: 9000 | |
name: minio | |
selector: | |
app: minio | |
--- | |
apiVersion: apps/v1beta1 | |
kind: StatefulSet | |
metadata: | |
name: minio | |
spec: | |
serviceName: minio | |
replicas: 4 | |
template: | |
metadata: | |
labels: | |
app: minio | |
spec: | |
containers: | |
- name: minio | |
env: | |
- name: MINIO_ACCESS_KEY | |
value: "minio-strg" | |
- name: MINIO_SECRET_KEY | |
value: "1qaz!QAZ" | |
image: minio/minio | |
args: | |
- server | |
- http://minio-{0...3}.minio.default.svc.cluster.local/data | |
ports: | |
- containerPort: 9000 | |
# These volume mounts are persistent. Each pod in the PetSet | |
# gets a volume mounted based on this field. | |
volumeMounts: | |
- name: data | |
mountPath: /data | |
# These are converted to volume claims by the controller | |
# and mounted at the paths mentioned above. | |
volumeClaimTemplates: | |
- metadata: | |
name: data | |
spec: | |
accessModes: | |
- ReadWriteOnce | |
resources: | |
requests: | |
storage: 5Gi | |
# Uncomment and add storageClass specific to your requirements below. Read more https://kubernetes.io/docs/concepts/storage/persistent-volumes/#class-1 | |
storageClassName: stg-2 | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: minio-service | |
spec: | |
type: LoadBalancer | |
ports: | |
- port: 9000 | |
targetPort: 80 | |
protocol: TCP | |
selector: | |
app: minio |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment