Skip to content

Instantly share code, notes, and snippets.

@arsenvlad
Created April 27, 2018 01:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arsenvlad/10340627e2983e0f9e41da00656ad45c to your computer and use it in GitHub Desktop.
Save arsenvlad/10340627e2983e0f9e41da00656ad45c to your computer and use it in GitHub Desktop.
minio gateway azure
apiVersion: v1
kind: Service
metadata:
name: minio
labels:
app: minio
spec:
clusterIP: None
ports:
- port: 9012
name: minio
selector:
app: minio
---
apiVersion: apps/v1beta1
kind: StatefulSet
metadata:
name: minio
spec:
serviceName: minio
replicas: 3
template:
metadata:
labels:
app: minio
spec:
containers:
- name: minio
env:
- name: MINIO_ACCESS_KEY
value: "PUT AZURE STORAGE ACCOUNT NAME HERE"
- name: MINIO_SECRET_KEY
value: "PUT AZURE STORAGE ACCOUNT KEY HERE"
image: minio/minio
args: ["gateway","azure","--address",":9012"]
ports:
- containerPort: 9012
---
apiVersion: v1
kind: Service
metadata:
name: minio-service
spec:
type: LoadBalancer
ports:
- port: 9012
targetPort: 9012
protocol: TCP
selector:
app: minio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment