You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
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:
|
|
|
|
- name: data
|
|
|
|
persistentVolumeClaim:
|
|
|
|
# Name of the PVC created earlier
|
|
|
|
claimName: minio-pv-claim
|
|
|
|
containers:
|
|
|
|
- name: minio
|
|
|
|
# Pulls the default Minio image from Docker Hub
|
|
|
|
image: minio/minio:RELEASE.2017-09-29T19-16-56Z
|
|
|
|
args:
|
|
|
|
- server
|
|
|
|
- /data
|
|
|
|
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: data # must match the volume name, above
|
|
|
|
mountPath: "/data"
|