apiVersion: apps/v1
kind: Deployment
metadata:
name: minio
namespace: minio
spec:
replicas: 1
selector:
matchLabels:
app: minio
template:
metadata:
labels:
app: minio
spec:
containers:
- name: minio
image: minio/minio
args:
- server
- /data
- --console-address
- :9001
env:
- name: MINIO_ROOT_USER
value: minio_user
- name: MINIO_ROOT_PASSWORD
value: minio_password
ports:
- containerPort: 9000
protocol: TCP
- containerPort: 9001
protocol: TCP
livenessProbe:
httpGet:
path: /minio/health/live
port: 9000
initialDelaySeconds: 30
periodSeconds: 20
timeoutSeconds: 15
failureThreshold: 6
readinessProbe:
httpGet:
path: /minio/health/ready
port: 9000
initialDelaySeconds: 15
periodSeconds: 10
timeoutSeconds: 10
failureThreshold: 3
volumeMounts:
- name: storage
mountPath: /data
volumes:
- name: storage
hostPath:
path: /home/docker/data/minio
type: DirectoryOrCreate
restartPolicy: Always