minio-deployment.yaml 998 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. ---
  2. kind: Deployment
  3. apiVersion: apps/v1
  4. metadata:
  5. name: minio
  6. namespace: minio
  7. spec:
  8. replicas: 1
  9. selector:
  10. matchLabels:
  11. app: minio
  12. template:
  13. metadata:
  14. labels:
  15. app: minio
  16. spec:
  17. containers:
  18. - name: minio
  19. image: quay.io/minio/aistor/minio
  20. command: ["minio"]
  21. args: ["server", "/data"]
  22. ports:
  23. - name: web-ui
  24. containerPort: 9000
  25. env:
  26. - name: MINIO_ROOT_USER
  27. valueFrom:
  28. secretKeyRef:
  29. name: minio-secret
  30. key: minio-root-user
  31. - name: MINIO_ROOT_PASSWORD
  32. valueFrom:
  33. secretKeyRef:
  34. name: minio-secret
  35. key: minio-root-password
  36. volumeMounts:
  37. - name: minio-data
  38. mountPath: /data
  39. volumes:
  40. - name: minio-data
  41. persistentVolumeClaim:
  42. claimName: minio-data