Skip to content

Instantly share code, notes, and snippets.

@nitisht
Created March 16, 2017 00:59
Show Gist options
  • Save nitisht/caa1d8afa1ef107a347ff8f7e66ac0e8 to your computer and use it in GitHub Desktop.
Save nitisht/caa1d8afa1ef107a347ff8f7e66ac0e8 to your computer and use it in GitHub Desktop.
Minio with Azure Disk
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
# This name uniquely identifies the Deployment
name: minio-deployment
spec:
strategy:
type: Recreate
template:
metadata:
labels:
# Label is used as selector in the service.
app: minio-server
spec:
# Refer to the PVC created earlier
volumes:
- azureDisk:
diskURI: VHD_URL
diskName: KubeTestDisk0
name: volume-azuredisk
containers:
- name: minio
# Pulls the default Minio image from Docker Hub
image: minio/minio
command: ["minio"]
args: ["server", "/storage"]
env:
# Minio access key and secret key
- name: MINIO_ACCESS_KEY
value: "minio"
- name: MINIO_SECRET_KEY
value: "minio123"
ports:
- containerPort: 9000
hostPort: 9000
# Mount the volume into the pod
volumeMounts:
- name: volume-azuredisk # must match the volume name, above
mountPath: "/storage"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment