minio.yaml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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.2023-09-16T01-01-47Z"
  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. volumes:
  46. - name: data
  47. persistentVolumeClaim:
  48. claimName: minio-pvc
  49. ---
  50. apiVersion: v1
  51. kind: Service
  52. metadata:
  53. name: minio-service
  54. namespace: minio
  55. spec:
  56. selector:
  57. app: minio
  58. type: ClusterIP
  59. ports:
  60. - name: minio-web-port
  61. protocol: TCP
  62. port: 9000
  63. targetPort: http-web-svc
  64. - name: minio-con-port
  65. protocol: TCP
  66. port: 9090
  67. targetPort: http-con-svc
  68. ---
  69. apiVersion: traefik.containo.us/v1alpha1
  70. kind: IngressRoute
  71. metadata:
  72. name: minio
  73. namespace: minio
  74. spec:
  75. entryPoints:
  76. - websecure
  77. routes:
  78. - kind: Rule
  79. match: Host(`s3.bnuuy.org`)
  80. services:
  81. - kind: Service
  82. name: minio-service
  83. port: 9000