minio.yaml 1.7 KB

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