apiVersion: apps/v1
kind: Deployment
metadata:
  name: minio
  labels:
    app: minio
spec:
  selector:
    matchLabels:
      app: minio
  strategy:
    type: Recreate
  template:
    metadata:
      labels:
        app: minio
    spec:
      containers:
      - name: minio
        image: minio/minio:RELEASE.2019-10-12T01-39-57Z
        args:
        - server
        - /data
        resources:
          limits:
            cpu: 100m
            memory: 256Mi
        env:
        - name: MINIO_ACCESS_KEY
          value: minio
        - name: MINIO_BROWSER
          value: "off"
        - name: MINIO_SECRET_KEY
          value: minio123
        ports:
        - containerPort: 9000
        livenessProbe:
          httpGet:
            port: 9000
            path: /minio/health/live
          initialDelaySeconds: 60
          periodSeconds: 30
        readinessProbe:
          httpGet:
            port: 9000
            path: /minio/health/ready
          initialDelaySeconds: 60
          periodSeconds: 30
