minio.yaml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. ---
  2. apiVersion: v1
  3. kind: Namespace
  4. metadata:
  5. name: minio
  6. ---
  7. apiVersion: apps/v1
  8. kind: Deployment
  9. metadata:
  10. name: minio
  11. namespace: minio
  12. spec:
  13. strategy:
  14. type: Recreate
  15. selector:
  16. matchLabels:
  17. app: minio
  18. replicas: 1
  19. template:
  20. metadata:
  21. labels:
  22. app: minio
  23. spec:
  24. containers:
  25. - name: minio
  26. image: "quay.io/minio/minio:RELEASE.2024-01-16T16-07-38Z"
  27. command: ["minio", "server", "/data", "--console-address", ":9090"]
  28. ports:
  29. - containerPort: 9000
  30. name: http-web-svc
  31. - containerPort: 9090
  32. name: http-con-svc
  33. envFrom:
  34. - secretRef:
  35. name: minio-secret
  36. env:
  37. volumeMounts:
  38. - mountPath: "/data"
  39. name: data
  40. livenessProbe:
  41. httpGet:
  42. path: /minio/health/live
  43. port: 9000
  44. failureThreshold: 10
  45. initialDelaySeconds: 30
  46. periodSeconds: 10
  47. resources:
  48. limits:
  49. memory: 7Gi
  50. volumes:
  51. - name: data
  52. persistentVolumeClaim:
  53. claimName: minio-pvc
  54. ---
  55. apiVersion: v1
  56. kind: Service
  57. metadata:
  58. name: minio-service
  59. namespace: minio
  60. spec:
  61. selector:
  62. app: minio
  63. type: ClusterIP
  64. ports:
  65. - name: minio-web-port
  66. protocol: TCP
  67. port: 9000
  68. targetPort: http-web-svc
  69. - name: minio-con-port
  70. protocol: TCP
  71. port: 9090
  72. targetPort: http-con-svc
  73. ---
  74. apiVersion: traefik.containo.us/v1alpha1
  75. kind: IngressRoute
  76. metadata:
  77. name: minio
  78. namespace: minio
  79. spec:
  80. entryPoints:
  81. - websecure
  82. routes:
  83. - kind: Rule
  84. match: Host(`s3.bnuuy.org`)
  85. services:
  86. - kind: Service
  87. name: minio-service
  88. port: 9000