2017-05-04 22:30:46 -04:00
|
|
|
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
|
|
|
|
spec:
|
|
|
|
# Refer to the PVC created earlier
|
|
|
|
volumes:
|
2017-09-14 22:17:42 -04:00
|
|
|
- name: data
|
2017-05-04 22:30:46 -04:00
|
|
|
persistentVolumeClaim:
|
|
|
|
# Name of the PVC created earlier
|
|
|
|
claimName: minio-pv-claim
|
|
|
|
containers:
|
|
|
|
- name: minio
|
|
|
|
# Pulls the default Minio image from Docker Hub
|
2017-11-22 23:49:53 -05:00
|
|
|
image: minio/minio:RELEASE.2017-11-22T19-55-46Z
|
2017-05-04 22:30:46 -04:00
|
|
|
args:
|
|
|
|
- server
|
2017-09-14 22:17:42 -04:00
|
|
|
- /data
|
2017-05-04 22:30:46 -04:00
|
|
|
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:
|
2017-09-14 22:17:42 -04:00
|
|
|
- name: data # must match the volume name, above
|
|
|
|
mountPath: "/data"
|