Last active
November 7, 2018 18:19
-
-
Save jbw976/eba906f6645712605ec196d3bbf1e5ef to your computer and use it in GitHub Desktop.
This file contains hidden or 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: my-store | |
spec: | |
serviceName: minio | |
replicas: 4 | |
template: | |
metadata: | |
labels: | |
app: minio | |
spec: | |
containers: | |
- name: minio | |
env: | |
- name: MINIO_ACCESS_KEY | |
value: "TEMP_DEMO_ACCESS_KEY" | |
- name: MINIO_SECRET_KEY | |
value: "TEMP_DEMO_SECRET_KEY" | |
image: minio/minio | |
args: | |
- server | |
- http://my-store-{0...3}.minio.default.svc/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: 10Gi | |
# Uncomment and add storageClass specific to your requirements below. Read more https://kubernetes.io/docs/concepts/storage/persistent-volumes/#class-1 | |
#storageClassName: | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: minio-service | |
spec: | |
type: LoadBalancer | |
ports: | |
- port: 9000 | |
targetPort: 9000 | |
protocol: TCP | |
selector: | |
app: minio |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment